pub struct Deleted<M> {
pub key: String,
pub rows_affected: u64,
pub model: PhantomData<M>,
}Expand description
Fired after a row is deleted.
Fields§
§key: StringThe primary key that was deleted.
rows_affected: u64How many rows the delete removed.
model: PhantomData<M>The model type, for listeners registered generically.
Trait Implementations§
Auto Trait Implementations§
impl<M> Freeze for Deleted<M>where
PhantomData<M>: Freeze,
impl<M> RefUnwindSafe for Deleted<M>where
PhantomData<M>: RefUnwindSafe,
impl<M> Send for Deleted<M>where
PhantomData<M>: Send,
impl<M> Sync for Deleted<M>where
PhantomData<M>: Sync,
impl<M> Unpin for Deleted<M>where
PhantomData<M>: Unpin,
impl<M> UnsafeUnpin for Deleted<M>where
PhantomData<M>: UnsafeUnpin,
impl<M> UnwindSafe for Deleted<M>where
PhantomData<M>: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Event for T
impl<T> Event for T
Source§fn event_name() -> &'static strwhere
Self: Sized,
fn event_name() -> &'static strwhere
Self: Sized,
A human-readable name, used by wildcard listeners and log output.
Always the Rust type path; see the trait docs.