pub struct Delete {
pub table_name: ValueOrGlob<String>,
}Expand description
Selector for DELETE statements, scoped to a table.
§String syntax examples
Delete– delete from any table.Delete(Sessions)– only fromSessions.
Fields§
§table_name: ValueOrGlob<String>The table being deleted from, or * for any.
Implementations§
Source§impl Delete
impl Delete
Sourcepub fn new(table_name: impl Into<ValueOrGlob<String>>) -> Self
pub fn new(table_name: impl Into<ValueOrGlob<String>>) -> Self
Creates a new Delete 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 with_table_name(self, value: impl Into<ValueOrGlob<String>>) -> Self
pub fn with_table_name(self, value: impl Into<ValueOrGlob<String>>) -> Self
Sets Delete::table_name and returns self for method chaining.
The table being deleted from, or * for any.
Sourcepub const fn is_all_glob(&self) -> bool
pub const fn is_all_glob(&self) -> bool
Sourcepub const fn is_all_value(&self) -> bool
pub const fn is_all_value(&self) -> bool
Sourcepub const fn is_any_glob(&self) -> bool
pub const fn is_any_glob(&self) -> bool
Sourcepub const fn is_any_value(&self) -> bool
pub const fn is_any_value(&self) -> bool
Sourcepub const fn specificity(&self) -> usize
pub const fn specificity(&self) -> usize
Trait Implementations§
Source§impl Default for Delete
Defaults to Delete::empty, producing a selector where every field is a glob.
impl Default for Delete
Defaults to Delete::empty, producing a selector where every field is a glob.
Source§impl Display for Delete
Formats this Delete using the CLI selector syntax. When all fields are globs, renders the bare identifier Delete; otherwise renders the identifier with parenthesized dot-separated fields.
impl Display for Delete
Formats this Delete using the CLI selector syntax. When all fields are globs, renders the bare identifier Delete; otherwise renders the identifier with parenthesized dot-separated fields.
Source§impl From<Delete> for AccessControlSelector
Converts a Delete into its corresponding AccessControlSelector variant.
impl From<Delete> for AccessControlSelector
Converts a Delete into its corresponding AccessControlSelector variant.
Source§impl FromStr for Delete
Parses a selector string into a Delete. Accepts the syntax Delete or Delete(field1.field2).
impl FromStr for Delete
Parses a selector string into a Delete. Accepts the syntax Delete or Delete(field1.field2).