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