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