pub struct DropTempTrigger {
pub table_name: ValueOrGlob<String>,
pub trigger_name: ValueOrGlob<String>,
}Expand description
Selector for DROP TEMP TRIGGER statements, scoped to a table and
trigger name.
§String syntax examples
DropTempTrigger– any temp trigger.DropTempTrigger(Orders.trg_audit)– one specific trigger.
Fields§
§table_name: ValueOrGlob<String>The table the temp trigger fires on, or * for any.
trigger_name: ValueOrGlob<String>The name of the temp trigger being dropped, or *.
Implementations§
Source§impl DropTempTrigger
impl DropTempTrigger
Sourcepub fn new(
table_name: impl Into<ValueOrGlob<String>>,
trigger_name: impl Into<ValueOrGlob<String>>,
) -> Self
pub fn new( table_name: impl Into<ValueOrGlob<String>>, trigger_name: impl Into<ValueOrGlob<String>>, ) -> Self
Creates a new DropTempTrigger with the provided field values.
Each argument accepts any type that implements Into<ValueOrGlob<T>>, so callers can pass a raw value, a ValueOrGlob, or an Option<T>.
Sourcepub fn empty() -> Self
pub fn empty() -> Self
Creates a DropTempTrigger where every field is a Glob, matching all possible values.
Sourcepub fn with_table_name(self, value: impl Into<ValueOrGlob<String>>) -> Self
pub fn with_table_name(self, value: impl Into<ValueOrGlob<String>>) -> Self
Sets DropTempTrigger::table_name and returns self for method chaining.
The table the temp trigger fires on, or * for any.
Sourcepub fn with_trigger_name(self, value: impl Into<ValueOrGlob<String>>) -> Self
pub fn with_trigger_name(self, value: impl Into<ValueOrGlob<String>>) -> Self
Sets DropTempTrigger::trigger_name and returns self for method chaining.
The name of the temp trigger being dropped, or *.
Sourcepub const fn is_all_glob(&self) -> bool
pub const fn is_all_glob(&self) -> bool
Returns true if every field on this DropTempTrigger is a Glob.
Sourcepub const fn is_all_value(&self) -> bool
pub const fn is_all_value(&self) -> bool
Returns true if every field on this DropTempTrigger is a Value.
Sourcepub const fn is_any_glob(&self) -> bool
pub const fn is_any_glob(&self) -> bool
Returns true if at least one field on this DropTempTrigger is a Glob.
Sourcepub const fn is_any_value(&self) -> bool
pub const fn is_any_value(&self) -> bool
Returns true if at least one field on this DropTempTrigger is a Value.
Sourcepub const fn specificity(&self) -> usize
pub const fn specificity(&self) -> usize
Returns the number of Value fields on this DropTempTrigger, used to rank competing policy rules during resolution. A higher specificity means the rule targets a narrower set of operations.
Trait Implementations§
Source§impl Clone for DropTempTrigger
impl Clone for DropTempTrigger
Source§fn clone(&self) -> DropTempTrigger
fn clone(&self) -> DropTempTrigger
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DropTempTrigger
impl Debug for DropTempTrigger
Source§impl Default for DropTempTrigger
Defaults to DropTempTrigger::empty, producing a selector where every field is a glob.
impl Default for DropTempTrigger
Defaults to DropTempTrigger::empty, producing a selector where every field is a glob.
Source§impl Display for DropTempTrigger
Formats this DropTempTrigger using the CLI selector syntax. When all fields are globs, renders the bare identifier DropTempTrigger; otherwise renders the identifier with parenthesized dot-separated fields.
impl Display for DropTempTrigger
Formats this DropTempTrigger using the CLI selector syntax. When all fields are globs, renders the bare identifier DropTempTrigger; otherwise renders the identifier with parenthesized dot-separated fields.
Source§impl From<DropTempTrigger> for AccessControlSelector
Converts a DropTempTrigger into its corresponding AccessControlSelector variant.
impl From<DropTempTrigger> for AccessControlSelector
Converts a DropTempTrigger into its corresponding AccessControlSelector variant.
Source§fn from(value: DropTempTrigger) -> Self
fn from(value: DropTempTrigger) -> Self
Source§impl From<DropTempTrigger> for String
Converts a DropTempTrigger into its string representation via Display.
impl From<DropTempTrigger> for String
Converts a DropTempTrigger into its string representation via Display.
Source§fn from(value: DropTempTrigger) -> Self
fn from(value: DropTempTrigger) -> Self
Source§impl FromStr for DropTempTrigger
Parses a selector string into a DropTempTrigger. Accepts the syntax DropTempTrigger or DropTempTrigger(field1.field2).
impl FromStr for DropTempTrigger
Parses a selector string into a DropTempTrigger. Accepts the syntax DropTempTrigger or DropTempTrigger(field1.field2).
Source§impl Hash for DropTempTrigger
impl Hash for DropTempTrigger
Source§impl Ord for DropTempTrigger
impl Ord for DropTempTrigger
Source§fn cmp(&self, other: &DropTempTrigger) -> Ordering
fn cmp(&self, other: &DropTempTrigger) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for DropTempTrigger
impl PartialEq for DropTempTrigger
Source§impl PartialOrd for DropTempTrigger
impl PartialOrd for DropTempTrigger
Source§impl TryFrom<String> for DropTempTrigger
Parses an owned String into a DropTempTrigger by delegating to FromStr.
impl TryFrom<String> for DropTempTrigger
Parses an owned String into a DropTempTrigger by delegating to FromStr.