Trait Delete

Source
pub trait Delete<C, R>
where C: Connection<R>, R: Row,
{ // Required methods fn delete(&self, conn: &mut C) -> Result<()>; fn delete_with_filter<F>(&self, conn: &mut C, filter: &F) -> Result<()> where F: FlavoredFilter; fn delete_with_filter_order_limit_offset<F, O>( &self, conn: &mut C, filter: &F, order: &O, limit: usize, offset: usize, ) -> Result<()> where F: FlavoredFilter, O: FlavoredOrder; }

Required Methods§

Source

fn delete(&self, conn: &mut C) -> Result<()>

Delete all items of type stored in database

Source

fn delete_with_filter<F>(&self, conn: &mut C, filter: &F) -> Result<()>
where F: FlavoredFilter,

Delete all items of type matching the filtering criteria stored in database

Source

fn delete_with_filter_order_limit_offset<F, O>( &self, conn: &mut C, filter: &F, order: &O, limit: usize, offset: usize, ) -> Result<()>

Delete limit items after nominated offset items of type matching the filtering criteria and ordered in accordance with order statement

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§

Source§

impl<C, R, S> Delete<C, R> for S