pub trait Create<I, E: Entity<I>> {
type Error;
// Required method
fn save(&mut self, entity: &E) -> Result<(), Self::Error>;
}
Expand description
Represents ability to save entity in the storage. This trait is used by custom storage implementations.