pub struct DropTempView {
pub view_name: ValueOrGlob<String>,
}Expand description
Selector for DROP TEMP VIEW statements.
§String syntax examples
DropTempView– any temporary view.DropTempView(recent_orders)– onlyrecent_orders.
Fields§
§view_name: ValueOrGlob<String>The name of the temp view being dropped, or * for any.
Implementations§
Source§impl DropTempView
impl DropTempView
Sourcepub fn new(view_name: impl Into<ValueOrGlob<String>>) -> Self
pub fn new(view_name: impl Into<ValueOrGlob<String>>) -> Self
Creates a new DropTempView 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 DropTempView where every field is a Glob, matching all possible values.
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 DropTempView::view_name and returns self for method chaining.
The name of the temp view being dropped, or * for any.
Sourcepub const fn is_all_glob(&self) -> bool
pub const fn is_all_glob(&self) -> bool
Returns true if every field on this DropTempView 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 DropTempView 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 DropTempView 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 DropTempView is a Value.
Sourcepub const fn specificity(&self) -> usize
pub const fn specificity(&self) -> usize
Returns the number of Value fields on this DropTempView, 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 DropTempView
impl Clone for DropTempView
Source§fn clone(&self) -> DropTempView
fn clone(&self) -> DropTempView
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DropTempView
impl Debug for DropTempView
Source§impl Default for DropTempView
Defaults to DropTempView::empty, producing a selector where every field is a glob.
impl Default for DropTempView
Defaults to DropTempView::empty, producing a selector where every field is a glob.
Source§impl Display for DropTempView
Formats this DropTempView using the CLI selector syntax. When all fields are globs, renders the bare identifier DropTempView; otherwise renders the identifier with parenthesized dot-separated fields.
impl Display for DropTempView
Formats this DropTempView using the CLI selector syntax. When all fields are globs, renders the bare identifier DropTempView; otherwise renders the identifier with parenthesized dot-separated fields.
Source§impl From<DropTempView> for AccessControlSelector
Converts a DropTempView into its corresponding AccessControlSelector variant.
impl From<DropTempView> for AccessControlSelector
Converts a DropTempView into its corresponding AccessControlSelector variant.
Source§fn from(value: DropTempView) -> Self
fn from(value: DropTempView) -> Self
Source§impl From<DropTempView> for String
Converts a DropTempView into its string representation via Display.
impl From<DropTempView> for String
Converts a DropTempView into its string representation via Display.
Source§fn from(value: DropTempView) -> Self
fn from(value: DropTempView) -> Self
Source§impl FromStr for DropTempView
Parses a selector string into a DropTempView. Accepts the syntax DropTempView or DropTempView(field1.field2).
impl FromStr for DropTempView
Parses a selector string into a DropTempView. Accepts the syntax DropTempView or DropTempView(field1.field2).
Source§impl Hash for DropTempView
impl Hash for DropTempView
Source§impl Ord for DropTempView
impl Ord for DropTempView
Source§fn cmp(&self, other: &DropTempView) -> Ordering
fn cmp(&self, other: &DropTempView) -> 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 DropTempView
impl PartialEq for DropTempView
Source§impl PartialOrd for DropTempView
impl PartialOrd for DropTempView
Source§impl TryFrom<String> for DropTempView
Parses an owned String into a DropTempView by delegating to FromStr.
impl TryFrom<String> for DropTempView
Parses an owned String into a DropTempView by delegating to FromStr.