FetchListWithKey

Trait FetchListWithKey 

Source
pub trait FetchListWithKey<Model> {
    type Key;

    // Required method
    fn fetch_list_with_key(
        &self,
        keys: &[Self::Key],
    ) -> Result<Vec<Model>, StorageError>;
}
Expand description

Fetches a filtered list of Model instances matching the specified key. Logs an error and returns an empty list if no items are found or if an error occurs.

§Parameters

  • key: The key used to filter the items in the data store.

Required Associated Types§

Required Methods§

Source

fn fetch_list_with_key( &self, keys: &[Self::Key], ) -> Result<Vec<Model>, StorageError>

Implementors§