pub trait DataStore<M: DataMarker>: Sealed {
    type IterReturn: Iterator<Item = DataIdentifierCow<'static>>;
    // Required methods
    fn get(
        &self,
        req: DataIdentifierBorrowed<'_>,
        attributes_prefix_match: bool,
    ) -> Option<DataPayload<M>>;
    fn iter(&'static self) -> Self::IterReturn;
}Expand description
A backing store for baked data
Required Associated Types§
Sourcetype IterReturn: Iterator<Item = DataIdentifierCow<'static>>
 
type IterReturn: Iterator<Item = DataIdentifierCow<'static>>
The type returned by the iterator
Required Methods§
Sourcefn get(
    &self,
    req: DataIdentifierBorrowed<'_>,
    attributes_prefix_match: bool,
) -> Option<DataPayload<M>>
 
fn get( &self, req: DataIdentifierBorrowed<'_>, attributes_prefix_match: bool, ) -> Option<DataPayload<M>>
Get the value for a key
Sourcefn iter(&'static self) -> Self::IterReturn
 
fn iter(&'static self) -> Self::IterReturn
Iterate over all data