[][src]Trait kv_crud_core::Create

pub trait Create<I, E: Entity<I>> {
type Error;
    fn save(&mut self, entity: &E) -> Result<(), Self::Error>;
}

Represents ability to save entity in the storage. This trait is used by custom storage implementations.

Associated Types

type Error

Loading content...

Required methods

fn save(&mut self, entity: &E) -> Result<(), Self::Error>

Loading content...

Implementors

Loading content...