pub enum TriggerOutcome {
Row(Row),
Skip,
}Expand description
What the trigger function returned. Drives the row-write path the trigger fired from.
Variants§
Row(Row)
RETURN NEW; (or RETURN OLD;) — write this row.
For BEFORE triggers, the row may differ from the input
(e.g. NEW.search_vector := … rewrote a cell). For AFTER
triggers, the value is currently ignored — but we still
surface it for symmetric callers / future v7.12.5 use.
Skip
RETURN NULL; or trigger fell off the end. For a BEFORE
trigger, the row writer must skip the affected row. For
an AFTER trigger, no-op.
Trait Implementations§
Source§impl Clone for TriggerOutcome
impl Clone for TriggerOutcome
Source§fn clone(&self) -> TriggerOutcome
fn clone(&self) -> TriggerOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TriggerOutcome
impl Debug for TriggerOutcome
Source§impl PartialEq for TriggerOutcome
impl PartialEq for TriggerOutcome
Source§fn eq(&self, other: &TriggerOutcome) -> bool
fn eq(&self, other: &TriggerOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TriggerOutcome
Auto Trait Implementations§
impl Freeze for TriggerOutcome
impl RefUnwindSafe for TriggerOutcome
impl Send for TriggerOutcome
impl Sync for TriggerOutcome
impl Unpin for TriggerOutcome
impl UnsafeUnpin for TriggerOutcome
impl UnwindSafe for TriggerOutcome
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