pub trait Deleteable: Sized {
// Required method
fn create(&self) -> Result<(Self, CompareAndSwapTransaction), DatabaseError>;
}Required Methods§
Sourcefn create(&self) -> Result<(Self, CompareAndSwapTransaction), DatabaseError>
fn create(&self) -> Result<(Self, CompareAndSwapTransaction), DatabaseError>
Deletes self from the database
This function should unlink references that point to self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.