#[non_exhaustive]pub struct TriggerEntity {
pub name: String,
pub triggering_events: Vec<String>,
pub trigger_type: String,
pub sql_code: String,
pub custom_features: Option<Struct>,
/* private fields */
}Expand description
Trigger is not used as an independent entity, it is retrieved as part of a Table entity.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringThe name of the trigger.
triggering_events: Vec<String>The DML, DDL, or database events that fire the trigger, for example INSERT, UPDATE.
trigger_type: StringIndicates when the trigger fires, for example BEFORE STATEMENT, AFTER EACH ROW.
sql_code: StringThe SQL code which creates the trigger.
custom_features: Option<Struct>Custom engine specific features.
Implementations§
Source§impl TriggerEntity
impl TriggerEntity
pub fn new() -> Self
Sourcepub fn set_triggering_events<T, V>(self, v: T) -> Self
pub fn set_triggering_events<T, V>(self, v: T) -> Self
Sets the value of triggering_events.
Sourcepub fn set_trigger_type<T: Into<String>>(self, v: T) -> Self
pub fn set_trigger_type<T: Into<String>>(self, v: T) -> Self
Sets the value of trigger_type.
Sourcepub fn set_sql_code<T: Into<String>>(self, v: T) -> Self
pub fn set_sql_code<T: Into<String>>(self, v: T) -> Self
Sets the value of sql_code.
Sourcepub fn set_custom_features<T>(self, v: T) -> Self
pub fn set_custom_features<T>(self, v: T) -> Self
Sets the value of custom_features.
Sourcepub fn set_or_clear_custom_features<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_custom_features<T>(self, v: Option<T>) -> Self
Sets or clears the value of custom_features.
Trait Implementations§
Source§impl Clone for TriggerEntity
impl Clone for TriggerEntity
Source§fn clone(&self) -> TriggerEntity
fn clone(&self) -> TriggerEntity
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 TriggerEntity
impl Debug for TriggerEntity
Source§impl Default for TriggerEntity
impl Default for TriggerEntity
Source§fn default() -> TriggerEntity
fn default() -> TriggerEntity
Returns the “default value” for a type. Read more
Source§impl Message for TriggerEntity
impl Message for TriggerEntity
Source§impl PartialEq for TriggerEntity
impl PartialEq for TriggerEntity
impl StructuralPartialEq for TriggerEntity
Auto Trait Implementations§
impl Freeze for TriggerEntity
impl RefUnwindSafe for TriggerEntity
impl Send for TriggerEntity
impl Sync for TriggerEntity
impl Unpin for TriggerEntity
impl UnwindSafe for TriggerEntity
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