Trait Delete

Source
pub trait Delete
where Self: Table + Sized + Send + Sync + 'static,
{ // Required method fn delete_row<'a, 'c: 'a>( db: impl Executor<'c, Database = Db> + 'a, id: Self::Id, ) -> impl Future<Output = Result<()>> + Send + 'a; // Provided methods fn delete<'a, 'c: 'a>( self, db: impl Executor<'c, Database = Db> + 'a, ) -> impl Future<Output = Result<()>> + Send + 'a { ... } fn delete_ref<'a, 'c: 'a>( &self, db: impl Executor<'c, Database = Db> + 'a, ) -> impl Future<Output = Result<()>> + Send + 'a { ... } }

Required Methods§

Source

fn delete_row<'a, 'c: 'a>( db: impl Executor<'c, Database = Db> + 'a, id: Self::Id, ) -> impl Future<Output = Result<()>> + Send + 'a

Delete a row from the database

Provided Methods§

Source

fn delete<'a, 'c: 'a>( self, db: impl Executor<'c, Database = Db> + 'a, ) -> impl Future<Output = Result<()>> + Send + 'a

Deletes this row from the database

Source

fn delete_ref<'a, 'c: 'a>( &self, db: impl Executor<'c, Database = Db> + 'a, ) -> impl Future<Output = Result<()>> + Send + 'a

Deletes this row from the database

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.

Implementors§