Fetch

Trait Fetch 

Source
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

Required Associated Types§

Required Methods§

Source

fn fetch(&self, key: &Self::Key) -> Result<Option<Model>, StorageError>

Implementors§