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