[][src]Trait kv_crud_core::Delete

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

Represents the ability to remove the entity from the storage. This trait is used by custom storage implementations.

Associated Types

type Error

Loading content...

Required methods

fn remove_by_id(&mut self, id: &I) -> Result<(), Self::Error>

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

Loading content...

Implementors

Loading content...