pub struct TriggerDef {
pub name: String,
pub table: String,
pub timing: TriggerTiming,
pub events: Vec<TriggerEvent>,
pub update_columns: Vec<String>,
pub for_each_row: bool,
pub execute_function: String,
}Expand description
PostgreSQL trigger definition
Fields§
§name: StringTrigger name.
table: StringTarget table.
timing: TriggerTimingTiming (BEFORE, AFTER, INSTEAD OF).
events: Vec<TriggerEvent>Events that fire the trigger.
update_columns: Vec<String>Optional column list for UPDATE OF triggers.
for_each_row: boolWhether the trigger fires FOR EACH ROW.
execute_function: StringFunction to execute.
Trait Implementations§
Source§impl Clone for TriggerDef
impl Clone for TriggerDef
Source§fn clone(&self) -> TriggerDef
fn clone(&self) -> TriggerDef
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 TriggerDef
impl Debug for TriggerDef
Source§impl PartialEq for TriggerDef
impl PartialEq for TriggerDef
impl StructuralPartialEq for TriggerDef
Auto Trait Implementations§
impl Freeze for TriggerDef
impl RefUnwindSafe for TriggerDef
impl Send for TriggerDef
impl Sync for TriggerDef
impl Unpin for TriggerDef
impl UnsafeUnpin for TriggerDef
impl UnwindSafe for TriggerDef
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