Skip to main content

AccessControlSelector

Enum AccessControlSelector 

Source
pub enum AccessControlSelector {
Show 33 variants CreateIndex(CreateIndex), CreateTable(CreateTable), CreateTempIndex(CreateTempIndex), CreateTempTable(CreateTempTable), CreateTempTrigger(CreateTempTrigger), CreateTempView(CreateTempView), CreateTrigger(CreateTrigger), CreateView(CreateView), Delete(Delete), DropIndex(DropIndex), DropTable(DropTable), DropTempIndex(DropTempIndex), DropTempTable(DropTempTable), DropTempTrigger(DropTempTrigger), DropTempView(DropTempView), DropTrigger(DropTrigger), DropView(DropView), Insert(Insert), Pragma(Pragma), Read(Read), Select(Select), Transaction(Transaction), Update(Update), Attach(Attach), Detach(Detach), AlterTable(AlterTable), Reindex(Reindex), Analyze(Analyze), CreateVtable(CreateVtable), DropVtable(DropVtable), Function(Function), Savepoint(Savepoint), Recursive(Recursive),
}
Expand description

Umbrella enum unifying all access control selector types into a single type for use with the CLI argument parser.

Each variant wraps a specific selector struct generated by define_access_control_selector_types!. Parsing a selector string through this enum automatically dispatches to the correct variant based on the leading identifier.

Variants§

§

CreateIndex(CreateIndex)

Selector for CREATE INDEX statements, scoped to a table and index name.

§String syntax examples

  • CreateIndex – any index on any table.
  • CreateIndex(Students) – any index on Students.
  • CreateIndex(Students.idx_email) – one specific index.
§

CreateTable(CreateTable)

Selector for CREATE TABLE statements.

§String syntax examples

  • CreateTable – any table.
  • CreateTable(Students) – only Students.
§

CreateTempIndex(CreateTempIndex)

Selector for CREATE TEMP INDEX statements, scoped to a table and index name.

§String syntax examples

  • CreateTempIndex – any temporary index on any table.
  • CreateTempIndex(Sessions) – temp indexes on Sessions.
§

CreateTempTable(CreateTempTable)

Selector for CREATE TEMP TABLE statements.

§String syntax examples

  • CreateTempTable – any temporary table.
  • CreateTempTable(scratch) – only scratch.
§

CreateTempTrigger(CreateTempTrigger)

Selector for CREATE TEMP TRIGGER statements, scoped to a table and trigger name.

§String syntax examples

  • CreateTempTrigger – any temp trigger on any table.
  • CreateTempTrigger(Orders.trg_audit) – one specific trigger.
§

CreateTempView(CreateTempView)

Selector for CREATE TEMP VIEW statements.

§String syntax examples

  • CreateTempView – any temporary view.
  • CreateTempView(recent_orders) – only recent_orders.
§

CreateTrigger(CreateTrigger)

Selector for CREATE TRIGGER statements, scoped to a table and trigger name.

§String syntax examples

  • CreateTrigger – any trigger on any table.
  • CreateTrigger(Orders.trg_audit) – one specific trigger.
§

CreateView(CreateView)

Selector for CREATE VIEW statements.

§String syntax examples

  • CreateView – any view.
  • CreateView(active_users) – only active_users.
§

Delete(Delete)

Selector for DELETE statements, scoped to a table.

§String syntax examples

  • Delete – delete from any table.
  • Delete(Sessions) – only from Sessions.
§

DropIndex(DropIndex)

Selector for DROP INDEX statements, scoped to a table and index name.

§String syntax examples

  • DropIndex – any index on any table.
  • DropIndex(Students.idx_email) – one specific index.
§

DropTable(DropTable)

Selector for DROP TABLE statements.

§String syntax examples

  • DropTable – any table.
  • DropTable(Students) – only Students.
§

DropTempIndex(DropTempIndex)

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.
§

DropTempTable(DropTempTable)

Selector for DROP TEMP TABLE statements.

§String syntax examples

  • DropTempTable – any temporary table.
  • DropTempTable(scratch) – only scratch.
§

DropTempTrigger(DropTempTrigger)

Selector for DROP TEMP TRIGGER statements, scoped to a table and trigger name.

§String syntax examples

  • DropTempTrigger – any temp trigger.
  • DropTempTrigger(Orders.trg_audit) – one specific trigger.
§

DropTempView(DropTempView)

Selector for DROP TEMP VIEW statements.

§String syntax examples

  • DropTempView – any temporary view.
  • DropTempView(recent_orders) – only recent_orders.
§

DropTrigger(DropTrigger)

Selector for DROP TRIGGER statements, scoped to a table and trigger name.

§String syntax examples

  • DropTrigger – any trigger on any table.
  • DropTrigger(Orders.trg_audit) – one specific trigger.
§

DropView(DropView)

Selector for DROP VIEW statements.

§String syntax examples

  • DropView – any view.
  • DropView(active_users) – only active_users.
§

Insert(Insert)

Selector for INSERT statements, scoped to a table.

§String syntax examples

  • Insert – insert into any table.
  • Insert(Students) – only into Students.
§

Pragma(Pragma)

Selector for PRAGMA statements, scoped to a pragma name

§String syntax examples

  • Pragma – any pragma.
  • Pragma(journal_mode) – only journal_mode.
§

Read(Read)

Selector for column-level read operations, scoped to a table and column.

When both fields are globs, this matches all read operations across the entire database. Specifying a table_name narrows the scope to a single table, and additionally specifying a column_name narrows it to one column.

§String syntax examples

  • Read – all tables, all columns.
  • Read(Students) – the Students table, all columns.
  • Read(Students.name) – only the name column of Students.
  • Read(*.name) – the name column across every table.
§

Select(Select)

Selector for bare SELECT operations (the statement-level authorization check, not column-level reads).

§

Transaction(Transaction)

Selector for transaction control operations (BEGIN, COMMIT, ROLLBACK).

§String syntax examples

  • Transaction – any transaction operation.
  • Transaction(BEGIN) – only BEGIN statements.
§

Update(Update)

Selector for UPDATE statements, scoped to a table and column.

§String syntax examples

  • Update – any column on any table.
  • Update(Students) – any column on Students.
  • Update(Students.email) – only the email column.
§

Attach(Attach)

Selector for ATTACH DATABASE statements, scoped to a filename.

§String syntax examples

  • Attach – any attachment.
  • Attach(other.db) – only other.db.
§

Detach(Detach)

Selector for DETACH DATABASE statements, scoped to a database name.

§String syntax examples

  • Detach – any detachment.
  • Detach(aux) – only the aux database.
§

AlterTable(AlterTable)

Selector for ALTER TABLE statements, scoped to a database and table.

§String syntax examples

  • AlterTable – any alter on any table.
  • AlterTable(main.Students)Students in main.
§

Reindex(Reindex)

Selector for REINDEX statements, scoped to an index name.

§String syntax examples

  • Reindex – any index.
  • Reindex(idx_email) – only idx_email.
§

Analyze(Analyze)

Selector for ANALYZE statements, scoped to a table.

§String syntax examples

  • Analyze – any table.
  • Analyze(Students) – only Students.
§

CreateVtable(CreateVtable)

Selector for CREATE VIRTUAL TABLE statements, scoped to a table and module name.

§String syntax examples

  • CreateVtable – any virtual table.
  • CreateVtable(docs.fts5)docs using fts5.
§

DropVtable(DropVtable)

Selector for DROP VIRTUAL TABLE statements, scoped to a table and module name.

§String syntax examples

  • DropVtable – any virtual table.
  • DropVtable(docs.fts5)docs backed by fts5.
§

Function(Function)

Selector for SQL function invocations within a query.

§String syntax examples

  • Function – any function.
  • Function(load_extension) – only load_extension.
§

Savepoint(Savepoint)

Selector for SAVEPOINT, RELEASE, and ROLLBACK TO operations on named savepoints.

§String syntax examples

  • Savepoint – any savepoint operation.
  • Savepoint(RELEASE) – only RELEASE operations.
  • Savepoint(RELEASE.sp1)RELEASE on savepoint sp1.
§

Recursive(Recursive)

Selector for recursive query authorization checks.

Implementations§

Source§

impl AccessControlSelector

Source

pub const fn is_create_index(&self) -> bool

Returns true if this is the CreateIndex variant.

Source

pub const fn as_create_index(&self) -> Option<&CreateIndex>

Returns a reference to the inner CreateIndex if this is that variant, or None otherwise.

Source

pub fn into_create_index(self) -> Option<CreateIndex>

Consumes self and returns the inner CreateIndex if this is that variant, or None otherwise.

Source

pub const fn is_create_table(&self) -> bool

Returns true if this is the CreateTable variant.

Source

pub const fn as_create_table(&self) -> Option<&CreateTable>

Returns a reference to the inner CreateTable if this is that variant, or None otherwise.

Source

pub fn into_create_table(self) -> Option<CreateTable>

Consumes self and returns the inner CreateTable if this is that variant, or None otherwise.

Source

pub const fn is_create_temp_index(&self) -> bool

Returns true if this is the CreateTempIndex variant.

Source

pub const fn as_create_temp_index(&self) -> Option<&CreateTempIndex>

Returns a reference to the inner CreateTempIndex if this is that variant, or None otherwise.

Source

pub fn into_create_temp_index(self) -> Option<CreateTempIndex>

Consumes self and returns the inner CreateTempIndex if this is that variant, or None otherwise.

Source

pub const fn is_create_temp_table(&self) -> bool

Returns true if this is the CreateTempTable variant.

Source

pub const fn as_create_temp_table(&self) -> Option<&CreateTempTable>

Returns a reference to the inner CreateTempTable if this is that variant, or None otherwise.

Source

pub fn into_create_temp_table(self) -> Option<CreateTempTable>

Consumes self and returns the inner CreateTempTable if this is that variant, or None otherwise.

Source

pub const fn is_create_temp_trigger(&self) -> bool

Returns true if this is the CreateTempTrigger variant.

Source

pub const fn as_create_temp_trigger(&self) -> Option<&CreateTempTrigger>

Returns a reference to the inner CreateTempTrigger if this is that variant, or None otherwise.

Source

pub fn into_create_temp_trigger(self) -> Option<CreateTempTrigger>

Consumes self and returns the inner CreateTempTrigger if this is that variant, or None otherwise.

Source

pub const fn is_create_temp_view(&self) -> bool

Returns true if this is the CreateTempView variant.

Source

pub const fn as_create_temp_view(&self) -> Option<&CreateTempView>

Returns a reference to the inner CreateTempView if this is that variant, or None otherwise.

Source

pub fn into_create_temp_view(self) -> Option<CreateTempView>

Consumes self and returns the inner CreateTempView if this is that variant, or None otherwise.

Source

pub const fn is_create_trigger(&self) -> bool

Returns true if this is the CreateTrigger variant.

Source

pub const fn as_create_trigger(&self) -> Option<&CreateTrigger>

Returns a reference to the inner CreateTrigger if this is that variant, or None otherwise.

Source

pub fn into_create_trigger(self) -> Option<CreateTrigger>

Consumes self and returns the inner CreateTrigger if this is that variant, or None otherwise.

Source

pub const fn is_create_view(&self) -> bool

Returns true if this is the CreateView variant.

Source

pub const fn as_create_view(&self) -> Option<&CreateView>

Returns a reference to the inner CreateView if this is that variant, or None otherwise.

Source

pub fn into_create_view(self) -> Option<CreateView>

Consumes self and returns the inner CreateView if this is that variant, or None otherwise.

Source

pub const fn is_delete(&self) -> bool

Returns true if this is the Delete variant.

Source

pub const fn as_delete(&self) -> Option<&Delete>

Returns a reference to the inner Delete if this is that variant, or None otherwise.

Source

pub fn into_delete(self) -> Option<Delete>

Consumes self and returns the inner Delete if this is that variant, or None otherwise.

Source

pub const fn is_drop_index(&self) -> bool

Returns true if this is the DropIndex variant.

Source

pub const fn as_drop_index(&self) -> Option<&DropIndex>

Returns a reference to the inner DropIndex if this is that variant, or None otherwise.

Source

pub fn into_drop_index(self) -> Option<DropIndex>

Consumes self and returns the inner DropIndex if this is that variant, or None otherwise.

Source

pub const fn is_drop_table(&self) -> bool

Returns true if this is the DropTable variant.

Source

pub const fn as_drop_table(&self) -> Option<&DropTable>

Returns a reference to the inner DropTable if this is that variant, or None otherwise.

Source

pub fn into_drop_table(self) -> Option<DropTable>

Consumes self and returns the inner DropTable if this is that variant, or None otherwise.

Source

pub const fn is_drop_temp_index(&self) -> bool

Returns true if this is the DropTempIndex variant.

Source

pub const fn as_drop_temp_index(&self) -> Option<&DropTempIndex>

Returns a reference to the inner DropTempIndex if this is that variant, or None otherwise.

Source

pub fn into_drop_temp_index(self) -> Option<DropTempIndex>

Consumes self and returns the inner DropTempIndex if this is that variant, or None otherwise.

Source

pub const fn is_drop_temp_table(&self) -> bool

Returns true if this is the DropTempTable variant.

Source

pub const fn as_drop_temp_table(&self) -> Option<&DropTempTable>

Returns a reference to the inner DropTempTable if this is that variant, or None otherwise.

Source

pub fn into_drop_temp_table(self) -> Option<DropTempTable>

Consumes self and returns the inner DropTempTable if this is that variant, or None otherwise.

Source

pub const fn is_drop_temp_trigger(&self) -> bool

Returns true if this is the DropTempTrigger variant.

Source

pub const fn as_drop_temp_trigger(&self) -> Option<&DropTempTrigger>

Returns a reference to the inner DropTempTrigger if this is that variant, or None otherwise.

Source

pub fn into_drop_temp_trigger(self) -> Option<DropTempTrigger>

Consumes self and returns the inner DropTempTrigger if this is that variant, or None otherwise.

Source

pub const fn is_drop_temp_view(&self) -> bool

Returns true if this is the DropTempView variant.

Source

pub const fn as_drop_temp_view(&self) -> Option<&DropTempView>

Returns a reference to the inner DropTempView if this is that variant, or None otherwise.

Source

pub fn into_drop_temp_view(self) -> Option<DropTempView>

Consumes self and returns the inner DropTempView if this is that variant, or None otherwise.

Source

pub const fn is_drop_trigger(&self) -> bool

Returns true if this is the DropTrigger variant.

Source

pub const fn as_drop_trigger(&self) -> Option<&DropTrigger>

Returns a reference to the inner DropTrigger if this is that variant, or None otherwise.

Source

pub fn into_drop_trigger(self) -> Option<DropTrigger>

Consumes self and returns the inner DropTrigger if this is that variant, or None otherwise.

Source

pub const fn is_drop_view(&self) -> bool

Returns true if this is the DropView variant.

Source

pub const fn as_drop_view(&self) -> Option<&DropView>

Returns a reference to the inner DropView if this is that variant, or None otherwise.

Source

pub fn into_drop_view(self) -> Option<DropView>

Consumes self and returns the inner DropView if this is that variant, or None otherwise.

Source

pub const fn is_insert(&self) -> bool

Returns true if this is the Insert variant.

Source

pub const fn as_insert(&self) -> Option<&Insert>

Returns a reference to the inner Insert if this is that variant, or None otherwise.

Source

pub fn into_insert(self) -> Option<Insert>

Consumes self and returns the inner Insert if this is that variant, or None otherwise.

Source

pub const fn is_pragma(&self) -> bool

Returns true if this is the Pragma variant.

Source

pub const fn as_pragma(&self) -> Option<&Pragma>

Returns a reference to the inner Pragma if this is that variant, or None otherwise.

Source

pub fn into_pragma(self) -> Option<Pragma>

Consumes self and returns the inner Pragma if this is that variant, or None otherwise.

Source

pub const fn is_read(&self) -> bool

Returns true if this is the Read variant.

Source

pub const fn as_read(&self) -> Option<&Read>

Returns a reference to the inner Read if this is that variant, or None otherwise.

Source

pub fn into_read(self) -> Option<Read>

Consumes self and returns the inner Read if this is that variant, or None otherwise.

Source

pub const fn is_select(&self) -> bool

Returns true if this is the Select variant.

Source

pub const fn as_select(&self) -> Option<&Select>

Returns a reference to the inner Select if this is that variant, or None otherwise.

Source

pub fn into_select(self) -> Option<Select>

Consumes self and returns the inner Select if this is that variant, or None otherwise.

Source

pub const fn is_transaction(&self) -> bool

Returns true if this is the Transaction variant.

Source

pub const fn as_transaction(&self) -> Option<&Transaction>

Returns a reference to the inner Transaction if this is that variant, or None otherwise.

Source

pub fn into_transaction(self) -> Option<Transaction>

Consumes self and returns the inner Transaction if this is that variant, or None otherwise.

Source

pub const fn is_update(&self) -> bool

Returns true if this is the Update variant.

Source

pub const fn as_update(&self) -> Option<&Update>

Returns a reference to the inner Update if this is that variant, or None otherwise.

Source

pub fn into_update(self) -> Option<Update>

Consumes self and returns the inner Update if this is that variant, or None otherwise.

Source

pub const fn is_attach(&self) -> bool

Returns true if this is the Attach variant.

Source

pub const fn as_attach(&self) -> Option<&Attach>

Returns a reference to the inner Attach if this is that variant, or None otherwise.

Source

pub fn into_attach(self) -> Option<Attach>

Consumes self and returns the inner Attach if this is that variant, or None otherwise.

Source

pub const fn is_detach(&self) -> bool

Returns true if this is the Detach variant.

Source

pub const fn as_detach(&self) -> Option<&Detach>

Returns a reference to the inner Detach if this is that variant, or None otherwise.

Source

pub fn into_detach(self) -> Option<Detach>

Consumes self and returns the inner Detach if this is that variant, or None otherwise.

Source

pub const fn is_alter_table(&self) -> bool

Returns true if this is the AlterTable variant.

Source

pub const fn as_alter_table(&self) -> Option<&AlterTable>

Returns a reference to the inner AlterTable if this is that variant, or None otherwise.

Source

pub fn into_alter_table(self) -> Option<AlterTable>

Consumes self and returns the inner AlterTable if this is that variant, or None otherwise.

Source

pub const fn is_reindex(&self) -> bool

Returns true if this is the Reindex variant.

Source

pub const fn as_reindex(&self) -> Option<&Reindex>

Returns a reference to the inner Reindex if this is that variant, or None otherwise.

Source

pub fn into_reindex(self) -> Option<Reindex>

Consumes self and returns the inner Reindex if this is that variant, or None otherwise.

Source

pub const fn is_analyze(&self) -> bool

Returns true if this is the Analyze variant.

Source

pub const fn as_analyze(&self) -> Option<&Analyze>

Returns a reference to the inner Analyze if this is that variant, or None otherwise.

Source

pub fn into_analyze(self) -> Option<Analyze>

Consumes self and returns the inner Analyze if this is that variant, or None otherwise.

Source

pub const fn is_create_vtable(&self) -> bool

Returns true if this is the CreateVtable variant.

Source

pub const fn as_create_vtable(&self) -> Option<&CreateVtable>

Returns a reference to the inner CreateVtable if this is that variant, or None otherwise.

Source

pub fn into_create_vtable(self) -> Option<CreateVtable>

Consumes self and returns the inner CreateVtable if this is that variant, or None otherwise.

Source

pub const fn is_drop_vtable(&self) -> bool

Returns true if this is the DropVtable variant.

Source

pub const fn as_drop_vtable(&self) -> Option<&DropVtable>

Returns a reference to the inner DropVtable if this is that variant, or None otherwise.

Source

pub fn into_drop_vtable(self) -> Option<DropVtable>

Consumes self and returns the inner DropVtable if this is that variant, or None otherwise.

Source

pub const fn is_function(&self) -> bool

Returns true if this is the Function variant.

Source

pub const fn as_function(&self) -> Option<&Function>

Returns a reference to the inner Function if this is that variant, or None otherwise.

Source

pub fn into_function(self) -> Option<Function>

Consumes self and returns the inner Function if this is that variant, or None otherwise.

Source

pub const fn is_savepoint(&self) -> bool

Returns true if this is the Savepoint variant.

Source

pub const fn as_savepoint(&self) -> Option<&Savepoint>

Returns a reference to the inner Savepoint if this is that variant, or None otherwise.

Source

pub fn into_savepoint(self) -> Option<Savepoint>

Consumes self and returns the inner Savepoint if this is that variant, or None otherwise.

Source

pub const fn is_recursive(&self) -> bool

Returns true if this is the Recursive variant.

Source

pub const fn as_recursive(&self) -> Option<&Recursive>

Returns a reference to the inner Recursive if this is that variant, or None otherwise.

Source

pub fn into_recursive(self) -> Option<Recursive>

Consumes self and returns the inner Recursive if this is that variant, or None otherwise.

Trait Implementations§

Source§

impl Clone for AccessControlSelector

Source§

fn clone(&self) -> AccessControlSelector

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for AccessControlSelector

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for AccessControlSelector

Delegates to the wrapped selector variant’s Display implementation, producing the CLI selector syntax.

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> FmtResult

Formats the value using the given formatter. Read more
Source§

impl From<AccessControlSelector> for String

Converts an AccessControlSelector into its string representation via Display.

Source§

fn from(v: AccessControlSelector) -> Self

Converts to this type from the input type.
Source§

impl From<AlterTable> for AccessControlSelector

Converts a AlterTable into its corresponding AccessControlSelector variant.

Source§

fn from(value: AlterTable) -> Self

Converts to this type from the input type.
Source§

impl From<Analyze> for AccessControlSelector

Converts a Analyze into its corresponding AccessControlSelector variant.

Source§

fn from(value: Analyze) -> Self

Converts to this type from the input type.
Source§

impl From<Attach> for AccessControlSelector

Converts a Attach into its corresponding AccessControlSelector variant.

Source§

fn from(value: Attach) -> Self

Converts to this type from the input type.
Source§

impl From<CreateIndex> for AccessControlSelector

Converts a CreateIndex into its corresponding AccessControlSelector variant.

Source§

fn from(value: CreateIndex) -> Self

Converts to this type from the input type.
Source§

impl From<CreateTable> for AccessControlSelector

Converts a CreateTable into its corresponding AccessControlSelector variant.

Source§

fn from(value: CreateTable) -> Self

Converts to this type from the input type.
Source§

impl From<CreateTempIndex> for AccessControlSelector

Converts a CreateTempIndex into its corresponding AccessControlSelector variant.

Source§

fn from(value: CreateTempIndex) -> Self

Converts to this type from the input type.
Source§

impl From<CreateTempTable> for AccessControlSelector

Converts a CreateTempTable into its corresponding AccessControlSelector variant.

Source§

fn from(value: CreateTempTable) -> Self

Converts to this type from the input type.
Source§

impl From<CreateTempTrigger> for AccessControlSelector

Converts a CreateTempTrigger into its corresponding AccessControlSelector variant.

Source§

fn from(value: CreateTempTrigger) -> Self

Converts to this type from the input type.
Source§

impl From<CreateTempView> for AccessControlSelector

Converts a CreateTempView into its corresponding AccessControlSelector variant.

Source§

fn from(value: CreateTempView) -> Self

Converts to this type from the input type.
Source§

impl From<CreateTrigger> for AccessControlSelector

Converts a CreateTrigger into its corresponding AccessControlSelector variant.

Source§

fn from(value: CreateTrigger) -> Self

Converts to this type from the input type.
Source§

impl From<CreateView> for AccessControlSelector

Converts a CreateView into its corresponding AccessControlSelector variant.

Source§

fn from(value: CreateView) -> Self

Converts to this type from the input type.
Source§

impl From<CreateVtable> for AccessControlSelector

Converts a CreateVtable into its corresponding AccessControlSelector variant.

Source§

fn from(value: CreateVtable) -> Self

Converts to this type from the input type.
Source§

impl From<Delete> for AccessControlSelector

Converts a Delete into its corresponding AccessControlSelector variant.

Source§

fn from(value: Delete) -> Self

Converts to this type from the input type.
Source§

impl From<Detach> for AccessControlSelector

Converts a Detach into its corresponding AccessControlSelector variant.

Source§

fn from(value: Detach) -> Self

Converts to this type from the input type.
Source§

impl From<DropIndex> for AccessControlSelector

Converts a DropIndex into its corresponding AccessControlSelector variant.

Source§

fn from(value: DropIndex) -> Self

Converts to this type from the input type.
Source§

impl From<DropTable> for AccessControlSelector

Converts a DropTable into its corresponding AccessControlSelector variant.

Source§

fn from(value: DropTable) -> Self

Converts to this type from the input type.
Source§

impl From<DropTempIndex> for AccessControlSelector

Converts a DropTempIndex into its corresponding AccessControlSelector variant.

Source§

fn from(value: DropTempIndex) -> Self

Converts to this type from the input type.
Source§

impl From<DropTempTable> for AccessControlSelector

Converts a DropTempTable into its corresponding AccessControlSelector variant.

Source§

fn from(value: DropTempTable) -> Self

Converts to this type from the input type.
Source§

impl From<DropTempTrigger> for AccessControlSelector

Converts a DropTempTrigger into its corresponding AccessControlSelector variant.

Source§

fn from(value: DropTempTrigger) -> Self

Converts to this type from the input type.
Source§

impl From<DropTempView> for AccessControlSelector

Converts a DropTempView into its corresponding AccessControlSelector variant.

Source§

fn from(value: DropTempView) -> Self

Converts to this type from the input type.
Source§

impl From<DropTrigger> for AccessControlSelector

Converts a DropTrigger into its corresponding AccessControlSelector variant.

Source§

fn from(value: DropTrigger) -> Self

Converts to this type from the input type.
Source§

impl From<DropView> for AccessControlSelector

Converts a DropView into its corresponding AccessControlSelector variant.

Source§

fn from(value: DropView) -> Self

Converts to this type from the input type.
Source§

impl From<DropVtable> for AccessControlSelector

Converts a DropVtable into its corresponding AccessControlSelector variant.

Source§

fn from(value: DropVtable) -> Self

Converts to this type from the input type.
Source§

impl From<Function> for AccessControlSelector

Converts a Function into its corresponding AccessControlSelector variant.

Source§

fn from(value: Function) -> Self

Converts to this type from the input type.
Source§

impl From<Insert> for AccessControlSelector

Converts a Insert into its corresponding AccessControlSelector variant.

Source§

fn from(value: Insert) -> Self

Converts to this type from the input type.
Source§

impl From<Pragma> for AccessControlSelector

Converts a Pragma into its corresponding AccessControlSelector variant.

Source§

fn from(value: Pragma) -> Self

Converts to this type from the input type.
Source§

impl From<Read> for AccessControlSelector

Converts a Read into its corresponding AccessControlSelector variant.

Source§

fn from(value: Read) -> Self

Converts to this type from the input type.
Source§

impl From<Recursive> for AccessControlSelector

Converts a Recursive into its corresponding AccessControlSelector variant.

Source§

fn from(value: Recursive) -> Self

Converts to this type from the input type.
Source§

impl From<Reindex> for AccessControlSelector

Converts a Reindex into its corresponding AccessControlSelector variant.

Source§

fn from(value: Reindex) -> Self

Converts to this type from the input type.
Source§

impl From<Savepoint> for AccessControlSelector

Converts a Savepoint into its corresponding AccessControlSelector variant.

Source§

fn from(value: Savepoint) -> Self

Converts to this type from the input type.
Source§

impl From<Select> for AccessControlSelector

Converts a Select into its corresponding AccessControlSelector variant.

Source§

fn from(value: Select) -> Self

Converts to this type from the input type.
Source§

impl From<Transaction> for AccessControlSelector

Converts a Transaction into its corresponding AccessControlSelector variant.

Source§

fn from(value: Transaction) -> Self

Converts to this type from the input type.
Source§

impl From<Update> for AccessControlSelector

Converts a Update into its corresponding AccessControlSelector variant.

Source§

fn from(value: Update) -> Self

Converts to this type from the input type.
Source§

impl FromStr for AccessControlSelector

Parses a selector string by extracting the leading identifier and dispatching to the corresponding variant’s FromStr implementation.

§Errors

Returns AccessControlSelectorParseError::InvalidAccessControlSelectorIdentifier when the leading identifier does not match any known selector variant, and propagates any error from the variant-level parser.

Source§

type Err = AccessControlSelectorParseError

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
Source§

impl Hash for AccessControlSelector

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for AccessControlSelector

Source§

fn cmp(&self, other: &AccessControlSelector) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for AccessControlSelector

Source§

fn eq(&self, other: &AccessControlSelector) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for AccessControlSelector

Source§

fn partial_cmp(&self, other: &AccessControlSelector) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl TryFrom<String> for AccessControlSelector

Parses an owned String into an AccessControlSelector by delegating to FromStr.

Source§

type Error = AccessControlSelectorParseError

The type returned in the event of a conversion error.
Source§

fn try_from(v: String) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl Eq for AccessControlSelector

Source§

impl StructuralPartialEq for AccessControlSelector

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<I> IntoResettable<String> for I
where I: Into<String>,

Source§

fn into_resettable(self) -> Resettable<String>

Convert to the intended resettable type
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more