pub struct AfterRowTriggerEvent { /* private fields */ }Implementations§
Source§impl AfterRowTriggerEvent
impl AfterRowTriggerEvent
pub fn prepare( context: &TriggerContext<'_>, input: AfterRowTriggerInput<'_>, ) -> Result<Option<Self>>
Sourcepub fn foreign_key_checks(
table: &str,
event: TriggerEvent,
foreign_key_checks: Vec<ForeignKeyCheck>,
) -> Option<Self>
pub fn foreign_key_checks( table: &str, event: TriggerEvent, foreign_key_checks: Vec<ForeignKeyCheck>, ) -> Option<Self>
An event that only checks foreign keys and takes referential actions, for a row with no user trigger to fire and no transition to capture; None when the row queued neither.
pub fn prepare_transition_capture( context: &TriggerContext<'_>, input: AfterRowTriggerInput<'_>, ) -> Result<Option<Self>>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AfterRowTriggerEvent
impl<'de> Deserialize<'de> for AfterRowTriggerEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for AfterRowTriggerEvent
impl !UnwindSafe for AfterRowTriggerEvent
impl Freeze for AfterRowTriggerEvent
impl Send for AfterRowTriggerEvent
impl Sync for AfterRowTriggerEvent
impl Unpin for AfterRowTriggerEvent
impl UnsafeUnpin for AfterRowTriggerEvent
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more