pub struct TriggerInfo {
pub name: String,
pub table_name: String,
pub event: String,
pub timing: String,
pub sql: String,
}Expand description
Metadata for a single trigger in the database.
Fields§
§name: StringThe trigger name as declared in CREATE TRIGGER.
table_name: StringThe table this trigger is attached to.
event: StringThe DML event that fires the trigger: INSERT, UPDATE, or DELETE.
timing: StringWhen the trigger fires relative to the event: BEFORE, AFTER, or
INSTEAD OF.
sql: StringThe full CREATE TRIGGER SQL statement that defines this trigger.
Trait Implementations§
Source§impl Clone for TriggerInfo
impl Clone for TriggerInfo
Source§fn clone(&self) -> TriggerInfo
fn clone(&self) -> TriggerInfo
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 TriggerInfo
impl Debug for TriggerInfo
Source§impl<'de> Deserialize<'de> for TriggerInfo
impl<'de> Deserialize<'de> for TriggerInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for TriggerInfo
impl Hash for TriggerInfo
Source§impl JsonSchema for TriggerInfo
impl JsonSchema for TriggerInfo
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Ord for TriggerInfo
impl Ord for TriggerInfo
Source§fn cmp(&self, other: &TriggerInfo) -> Ordering
fn cmp(&self, other: &TriggerInfo) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TriggerInfo
impl PartialEq for TriggerInfo
Source§impl PartialOrd for TriggerInfo
impl PartialOrd for TriggerInfo
Source§impl Serialize for TriggerInfo
impl Serialize for TriggerInfo
impl Eq for TriggerInfo
impl StructuralPartialEq for TriggerInfo
Auto Trait Implementations§
impl Freeze for TriggerInfo
impl RefUnwindSafe for TriggerInfo
impl Send for TriggerInfo
impl Sync for TriggerInfo
impl Unpin for TriggerInfo
impl UnsafeUnpin for TriggerInfo
impl UnwindSafe for TriggerInfo
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