pub struct TriggerEntryMeta {
pub name: String,
pub canonical_name: String,
pub timing: TriggerTimingMeta,
pub event: TriggerEventMeta,
pub for_each_row: bool,
pub condition: Option<String>,
pub body_sql: String,
}Expand description
Persisted trigger definition stored alongside table metadata.
Fields§
§name: StringDisplay name preserving original casing.
canonical_name: StringCanonical lowercase trigger name for case-insensitive lookups.
timing: TriggerTimingMetaTiming phase indicating when the trigger executes relative to the mutation.
event: TriggerEventMetaMutation event that fires the trigger.
for_each_row: boolWhether the trigger fires per affected row (true) or per statement (false).
condition: Option<String>Optional SQL expression from the WHEN clause.
body_sql: StringTrigger body stored as SQL string (BEGIN/END block or single statement).
Trait Implementations§
Source§impl Clone for TriggerEntryMeta
impl Clone for TriggerEntryMeta
Source§fn clone(&self) -> TriggerEntryMeta
fn clone(&self) -> TriggerEntryMeta
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TriggerEntryMeta
impl Debug for TriggerEntryMeta
Source§impl PartialEq for TriggerEntryMeta
impl PartialEq for TriggerEntryMeta
impl<'__de> Decode<'__de> for TriggerEntryMetawhere
'__de:,
impl Encode for TriggerEntryMeta
impl Eq for TriggerEntryMeta
impl StructuralPartialEq for TriggerEntryMeta
Auto Trait Implementations§
impl Freeze for TriggerEntryMeta
impl RefUnwindSafe for TriggerEntryMeta
impl Send for TriggerEntryMeta
impl Sync for TriggerEntryMeta
impl Unpin for TriggerEntryMeta
impl UnwindSafe for TriggerEntryMeta
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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