use giterated_models::error::OperationError; use giterated_models::object::{GiteratedObject, Object, ObjectRequestError}; use giterated_models::object_backend::ObjectBackend; use giterated_models::operation::GiteratedOperation; use std::fmt::Debug; #[derive(Clone, Debug)] pub struct CacheBackend; #[async_trait::async_trait] impl ObjectBackend for CacheBackend { async fn object_operation + Debug>( &self, _object: O, operation: &str, payload: D, ) -> Result> { // We don't handle operations with this backend Err(OperationError::Unhandled) } async fn get_object( &self, _object_str: &str, ) -> Result, OperationError> { Err(OperationError::Unhandled) } }