#[non_exhaustive]pub struct SignalEvent<'a> {
pub kind: SignalKind,
pub db: &'a Db,
pub model: &'static ModelMeta,
pub relation: Option<&'static str>,
pub pk_set: &'a [Value],
}Expand description
Context handed to a receiver next to the instance.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.kind: SignalKindWhich signal fired, with its payload.
db: &'a DbThe handle the operation runs on (the open transaction, if any).
model: &'static ModelMetaMetadata of the instance’s model.
relation: Option<&'static str>m2m_changed only: the relation’s field name on the declaring model.
pk_set: &'a [Value]m2m_changed only: primary keys of the targets involved (empty for
clear).
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for SignalEvent<'a>
impl<'a> !UnwindSafe for SignalEvent<'a>
impl<'a> Freeze for SignalEvent<'a>
impl<'a> Send for SignalEvent<'a>
impl<'a> Sync for SignalEvent<'a>
impl<'a> Unpin for SignalEvent<'a>
impl<'a> UnsafeUnpin for SignalEvent<'a>
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