pub struct SQLTrigger {
pub name: String,
pub table: String,
pub timing: SQLTriggerTiming,
pub events: Vec<SQLTriggerEvent>,
pub function_name: String,
pub for_each_row: bool,
pub when_condition: Option<String>,
}Fields§
§name: String§table: String§timing: SQLTriggerTiming§events: Vec<SQLTriggerEvent>§function_name: String§for_each_row: bool§when_condition: Option<String>Implementations§
Source§impl SQLTrigger
impl SQLTrigger
pub fn new( name: impl Into<String>, table: impl Into<String>, function: impl Into<String>, ) -> Self
pub fn before(self) -> Self
pub fn after(self) -> Self
pub fn on_insert(self) -> Self
pub fn on_update(self) -> Self
pub fn on_delete(self) -> Self
pub fn for_each_statement(self) -> Self
pub fn emit(&self) -> String
Trait Implementations§
Source§impl Clone for SQLTrigger
impl Clone for SQLTrigger
Source§fn clone(&self) -> SQLTrigger
fn clone(&self) -> SQLTrigger
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 moreAuto Trait Implementations§
impl Freeze for SQLTrigger
impl RefUnwindSafe for SQLTrigger
impl Send for SQLTrigger
impl Sync for SQLTrigger
impl Unpin for SQLTrigger
impl UnsafeUnpin for SQLTrigger
impl UnwindSafe for SQLTrigger
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