pub trait Delete<Model> {
type Key;
// Required method
fn delete(&self, key: Self::Key) -> Result<usize, StorageError>;
}Expand description
Deletes a model from the underlying data store
pub trait Delete<Model> {
type Key;
// Required method
fn delete(&self, key: Self::Key) -> Result<usize, StorageError>;
}Deletes a model from the underlying data store