pub struct SchemaTriggerDef {
pub name: String,
pub table: String,
pub timing: String,
pub events: Vec<String>,
pub for_each_row: bool,
pub execute_function: String,
pub condition: Option<String>,
}Expand description
A trigger definition for the schema model.
Fields§
§name: StringTrigger name.
table: StringTarget table.
timing: StringTiming (BEFORE, AFTER, INSTEAD OF).
events: Vec<String>Events that fire the trigger (INSERT, UPDATE, DELETE).
for_each_row: boolWhether the trigger fires FOR EACH ROW (vs. FOR EACH STATEMENT).
execute_function: StringFunction to execute.
condition: Option<String>Optional WHEN condition.
Implementations§
Trait Implementations§
Source§impl Clone for SchemaTriggerDef
impl Clone for SchemaTriggerDef
Source§fn clone(&self) -> SchemaTriggerDef
fn clone(&self) -> SchemaTriggerDef
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 SchemaTriggerDef
impl Debug for SchemaTriggerDef
Source§impl PartialEq for SchemaTriggerDef
impl PartialEq for SchemaTriggerDef
impl StructuralPartialEq for SchemaTriggerDef
Auto Trait Implementations§
impl Freeze for SchemaTriggerDef
impl RefUnwindSafe for SchemaTriggerDef
impl Send for SchemaTriggerDef
impl Sync for SchemaTriggerDef
impl Unpin for SchemaTriggerDef
impl UnsafeUnpin for SchemaTriggerDef
impl UnwindSafe for SchemaTriggerDef
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