[][src]Trait kv_crud_core::Read

pub trait Read<I, E: Entity<I>> {
type Error;
    fn find_by_id(&self, id: &I) -> Result<E, Self::Error>;
}

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

Associated Types

type Error

Loading content...

Required methods

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

Loading content...

Implementors

Loading content...