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: String§table: String§timing: String§events: Vec<String>§for_each_row: bool§execute_function: String§condition: Option<String>Implementations§
Source§impl SchemaTriggerDef
impl SchemaTriggerDef
pub fn new( name: impl Into<String>, table: impl Into<String>, execute_function: impl Into<String>, ) -> Self
pub fn timing(self, t: impl Into<String>) -> Self
pub fn events(self, evts: Vec<String>) -> Self
pub fn for_each_statement(self) -> Self
pub fn condition(self, cond: impl Into<String>) -> Self
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 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