pub struct DropView {
pub view_name: ValueOrGlob<String>,
}Expand description
Selector for DROP VIEW statements.
§String syntax examples
DropView– any view.DropView(active_users)– onlyactive_users.
Fields§
§view_name: ValueOrGlob<String>The name of the view being dropped, or * for any.
Implementations§
Source§impl DropView
impl DropView
Sourcepub fn new(view_name: impl Into<ValueOrGlob<String>>) -> Self
pub fn new(view_name: impl Into<ValueOrGlob<String>>) -> Self
Creates a new DropView 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_view_name(self, value: impl Into<ValueOrGlob<String>>) -> Self
pub fn with_view_name(self, value: impl Into<ValueOrGlob<String>>) -> Self
Sets DropView::view_name and returns self for method chaining.
The name of the view being dropped, 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 DropView
Defaults to DropView::empty, producing a selector where every field is a glob.
impl Default for DropView
Defaults to DropView::empty, producing a selector where every field is a glob.
Source§impl Display for DropView
Formats this DropView using the CLI selector syntax. When all fields are globs, renders the bare identifier DropView; otherwise renders the identifier with parenthesized dot-separated fields.
impl Display for DropView
Formats this DropView using the CLI selector syntax. When all fields are globs, renders the bare identifier DropView; otherwise renders the identifier with parenthesized dot-separated fields.
Source§impl From<DropView> for AccessControlSelector
Converts a DropView into its corresponding AccessControlSelector variant.
impl From<DropView> for AccessControlSelector
Converts a DropView into its corresponding AccessControlSelector variant.
Source§impl FromStr for DropView
Parses a selector string into a DropView. Accepts the syntax DropView or DropView(field1.field2).
impl FromStr for DropView
Parses a selector string into a DropView. Accepts the syntax DropView or DropView(field1.field2).