Trait Read

Source
pub trait Read<I, E: Entity<I>> {
    type Error;

    // Required method
    fn find_by_id(&self, id: &I) -> Result<E, Self::Error>;
}
Expand description

Represents the ability to find single entity by its id in the system. This trait is used by custom storage implementations.

Required Associated Types§

Required Methods§

Source

fn find_by_id(&self, id: &I) -> Result<E, Self::Error>

Implementors§