pub struct Deleter { /* private fields */ }
Expand description
Handles DELETE operations in a ActiveModel using DeleteStatement
Implementations
sourceimpl Deleter
impl Deleter
sourcepub fn new(query: DeleteStatement) -> Self
pub fn new(query: DeleteStatement) -> Self
Instantiate a new Deleter by passing it a DeleteStatement
sourcepub fn exec<C>(
self,
db: &C
) -> impl Future<Output = Result<DeleteResult, DbErr>> + '_where
C: ConnectionTrait,
pub fn exec<C>(
self,
db: &C
) -> impl Future<Output = Result<DeleteResult, DbErr>> + '_where
C: ConnectionTrait,
Execute a DELETE operation
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Deleter
impl Send for Deleter
impl Sync for Deleter
impl Unpin for Deleter
impl !UnwindSafe for Deleter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more