pub enum TriggerBody {
Single(String),
Multiple(Vec<String>),
PostgresFunction(String),
}Expand description
Trigger body representation
Contains the SQL statements to execute when the trigger fires.
Variants§
Single(String)
Single SQL statement
Multiple(Vec<String>)
Multiple SQL statements (MySQL/SQLite BEGIN…END block)
PostgresFunction(String)
PostgreSQL function call (EXECUTE FUNCTION function_name())
Implementations§
Source§impl TriggerBody
impl TriggerBody
Trait Implementations§
Source§impl Clone for TriggerBody
impl Clone for TriggerBody
Source§fn clone(&self) -> TriggerBody
fn clone(&self) -> TriggerBody
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 TriggerBody
impl Debug for TriggerBody
Source§impl PartialEq for TriggerBody
impl PartialEq for TriggerBody
impl StructuralPartialEq for TriggerBody
Auto Trait Implementations§
impl Freeze for TriggerBody
impl RefUnwindSafe for TriggerBody
impl Send for TriggerBody
impl Sync for TriggerBody
impl Unpin for TriggerBody
impl UnsafeUnpin for TriggerBody
impl UnwindSafe for TriggerBody
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