pub struct Created<M> {
pub model: M,
pub id: i64,
}Expand description
Fired after a row is inserted.
Fields§
§model: MThe inserted model, with its assigned key where the backend reported one.
id: i64The key the database assigned, or 0 for an app-assigned key.
Trait Implementations§
Auto Trait Implementations§
impl<M> Freeze for Created<M>where
M: Freeze,
impl<M> RefUnwindSafe for Created<M>where
M: RefUnwindSafe,
impl<M> Send for Created<M>where
M: Send,
impl<M> Sync for Created<M>where
M: Sync,
impl<M> Unpin for Created<M>where
M: Unpin,
impl<M> UnsafeUnpin for Created<M>where
M: UnsafeUnpin,
impl<M> UnwindSafe for Created<M>where
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.