pub trait Fetch<Model> {
type Key;
// Required method
fn fetch(&self, key: &Self::Key) -> Result<Option<Model>, StorageError>;
}Expand description
Fetches a model from the underlying data store, returning None if it does not exist
pub trait Fetch<Model> {
type Key;
// Required method
fn fetch(&self, key: &Self::Key) -> Result<Option<Model>, StorageError>;
}Fetches a model from the underlying data store, returning None if it does not exist