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 onStudents.CreateIndex(Students.idx_email)– one specific index.
CreateTable(CreateTable)
Selector for CREATE TABLE statements.
§String syntax examples
CreateTable– any table.CreateTable(Students)– onlyStudents.
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 onSessions.
CreateTempTable(CreateTempTable)
Selector for CREATE TEMP TABLE statements.
§String syntax examples
CreateTempTable– any temporary table.CreateTempTable(scratch)– onlyscratch.
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)– onlyrecent_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)– onlyactive_users.
Delete(Delete)
Selector for DELETE statements, scoped to a table.
§String syntax examples
Delete– delete from any table.Delete(Sessions)– only fromSessions.
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)– onlyStudents.
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)– onlyscratch.
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)– onlyrecent_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)– onlyactive_users.
Insert(Insert)
Selector for INSERT statements, scoped to a table.
§String syntax examples
Insert– insert into any table.Insert(Students)– only intoStudents.
Pragma(Pragma)
Selector for PRAGMA statements, scoped to a pragma name
§String syntax examples
Pragma– any pragma.Pragma(journal_mode)– onlyjournal_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)– theStudentstable, all columns.Read(Students.name)– only thenamecolumn ofStudents.Read(*.name)– thenamecolumn 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)– onlyBEGINstatements.
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 onStudents.Update(Students.email)– only theemailcolumn.
Attach(Attach)
Selector for ATTACH DATABASE statements, scoped to a filename.
§String syntax examples
Attach– any attachment.Attach(other.db)– onlyother.db.
Detach(Detach)
Selector for DETACH DATABASE statements, scoped to a database name.
§String syntax examples
Detach– any detachment.Detach(aux)– only theauxdatabase.
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)–Studentsinmain.
Reindex(Reindex)
Selector for REINDEX statements, scoped to an index name.
§String syntax examples
Reindex– any index.Reindex(idx_email)– onlyidx_email.
Analyze(Analyze)
Selector for ANALYZE statements, scoped to a table.
§String syntax examples
Analyze– any table.Analyze(Students)– onlyStudents.
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)–docsusingfts5.
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)–docsbacked byfts5.
Function(Function)
Selector for SQL function invocations within a query.
§String syntax examples
Function– any function.Function(load_extension)– onlyload_extension.
Savepoint(Savepoint)
Selector for SAVEPOINT, RELEASE, and ROLLBACK TO operations on
named savepoints.
§String syntax examples
Savepoint– any savepoint operation.Savepoint(RELEASE)– onlyRELEASEoperations.Savepoint(RELEASE.sp1)–RELEASEon savepointsp1.
Recursive(Recursive)
Selector for recursive query authorization checks.
Implementations§
Source§impl AccessControlSelector
impl AccessControlSelector
Sourcepub const fn is_create_index(&self) -> bool
pub const fn is_create_index(&self) -> bool
Returns true if this is the CreateIndex variant.
Sourcepub const fn as_create_index(&self) -> Option<&CreateIndex>
pub const fn as_create_index(&self) -> Option<&CreateIndex>
Returns a reference to the inner CreateIndex if this is that variant, or None otherwise.
Sourcepub fn into_create_index(self) -> Option<CreateIndex>
pub fn into_create_index(self) -> Option<CreateIndex>
Consumes self and returns the inner CreateIndex if this is that variant, or None otherwise.
Sourcepub const fn is_create_table(&self) -> bool
pub const fn is_create_table(&self) -> bool
Returns true if this is the CreateTable variant.
Sourcepub const fn as_create_table(&self) -> Option<&CreateTable>
pub const fn as_create_table(&self) -> Option<&CreateTable>
Returns a reference to the inner CreateTable if this is that variant, or None otherwise.
Sourcepub fn into_create_table(self) -> Option<CreateTable>
pub fn into_create_table(self) -> Option<CreateTable>
Consumes self and returns the inner CreateTable if this is that variant, or None otherwise.
Sourcepub const fn is_create_temp_index(&self) -> bool
pub const fn is_create_temp_index(&self) -> bool
Returns true if this is the CreateTempIndex variant.
Sourcepub const fn as_create_temp_index(&self) -> Option<&CreateTempIndex>
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.
Sourcepub fn into_create_temp_index(self) -> Option<CreateTempIndex>
pub fn into_create_temp_index(self) -> Option<CreateTempIndex>
Consumes self and returns the inner CreateTempIndex if this is that variant, or None otherwise.
Sourcepub const fn is_create_temp_table(&self) -> bool
pub const fn is_create_temp_table(&self) -> bool
Returns true if this is the CreateTempTable variant.
Sourcepub const fn as_create_temp_table(&self) -> Option<&CreateTempTable>
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.
Sourcepub fn into_create_temp_table(self) -> Option<CreateTempTable>
pub fn into_create_temp_table(self) -> Option<CreateTempTable>
Consumes self and returns the inner CreateTempTable if this is that variant, or None otherwise.
Sourcepub const fn is_create_temp_trigger(&self) -> bool
pub const fn is_create_temp_trigger(&self) -> bool
Returns true if this is the CreateTempTrigger variant.
Sourcepub const fn as_create_temp_trigger(&self) -> Option<&CreateTempTrigger>
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.
Sourcepub fn into_create_temp_trigger(self) -> Option<CreateTempTrigger>
pub fn into_create_temp_trigger(self) -> Option<CreateTempTrigger>
Consumes self and returns the inner CreateTempTrigger if this is that variant, or None otherwise.
Sourcepub const fn is_create_temp_view(&self) -> bool
pub const fn is_create_temp_view(&self) -> bool
Returns true if this is the CreateTempView variant.
Sourcepub const fn as_create_temp_view(&self) -> Option<&CreateTempView>
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.
Sourcepub fn into_create_temp_view(self) -> Option<CreateTempView>
pub fn into_create_temp_view(self) -> Option<CreateTempView>
Consumes self and returns the inner CreateTempView if this is that variant, or None otherwise.
Sourcepub const fn is_create_trigger(&self) -> bool
pub const fn is_create_trigger(&self) -> bool
Returns true if this is the CreateTrigger variant.
Sourcepub const fn as_create_trigger(&self) -> Option<&CreateTrigger>
pub const fn as_create_trigger(&self) -> Option<&CreateTrigger>
Returns a reference to the inner CreateTrigger if this is that variant, or None otherwise.
Sourcepub fn into_create_trigger(self) -> Option<CreateTrigger>
pub fn into_create_trigger(self) -> Option<CreateTrigger>
Consumes self and returns the inner CreateTrigger if this is that variant, or None otherwise.
Sourcepub const fn is_create_view(&self) -> bool
pub const fn is_create_view(&self) -> bool
Returns true if this is the CreateView variant.
Sourcepub const fn as_create_view(&self) -> Option<&CreateView>
pub const fn as_create_view(&self) -> Option<&CreateView>
Returns a reference to the inner CreateView if this is that variant, or None otherwise.
Sourcepub fn into_create_view(self) -> Option<CreateView>
pub fn into_create_view(self) -> Option<CreateView>
Consumes self and returns the inner CreateView if this is that variant, or None otherwise.
Sourcepub const fn as_delete(&self) -> Option<&Delete>
pub const fn as_delete(&self) -> Option<&Delete>
Returns a reference to the inner Delete if this is that variant, or None otherwise.
Sourcepub fn into_delete(self) -> Option<Delete>
pub fn into_delete(self) -> Option<Delete>
Consumes self and returns the inner Delete if this is that variant, or None otherwise.
Sourcepub const fn is_drop_index(&self) -> bool
pub const fn is_drop_index(&self) -> bool
Returns true if this is the DropIndex variant.
Sourcepub const fn as_drop_index(&self) -> Option<&DropIndex>
pub const fn as_drop_index(&self) -> Option<&DropIndex>
Returns a reference to the inner DropIndex if this is that variant, or None otherwise.
Sourcepub fn into_drop_index(self) -> Option<DropIndex>
pub fn into_drop_index(self) -> Option<DropIndex>
Consumes self and returns the inner DropIndex if this is that variant, or None otherwise.
Sourcepub const fn is_drop_table(&self) -> bool
pub const fn is_drop_table(&self) -> bool
Returns true if this is the DropTable variant.
Sourcepub const fn as_drop_table(&self) -> Option<&DropTable>
pub const fn as_drop_table(&self) -> Option<&DropTable>
Returns a reference to the inner DropTable if this is that variant, or None otherwise.
Sourcepub fn into_drop_table(self) -> Option<DropTable>
pub fn into_drop_table(self) -> Option<DropTable>
Consumes self and returns the inner DropTable if this is that variant, or None otherwise.
Sourcepub const fn is_drop_temp_index(&self) -> bool
pub const fn is_drop_temp_index(&self) -> bool
Returns true if this is the DropTempIndex variant.
Sourcepub const fn as_drop_temp_index(&self) -> Option<&DropTempIndex>
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.
Sourcepub fn into_drop_temp_index(self) -> Option<DropTempIndex>
pub fn into_drop_temp_index(self) -> Option<DropTempIndex>
Consumes self and returns the inner DropTempIndex if this is that variant, or None otherwise.
Sourcepub const fn is_drop_temp_table(&self) -> bool
pub const fn is_drop_temp_table(&self) -> bool
Returns true if this is the DropTempTable variant.
Sourcepub const fn as_drop_temp_table(&self) -> Option<&DropTempTable>
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.
Sourcepub fn into_drop_temp_table(self) -> Option<DropTempTable>
pub fn into_drop_temp_table(self) -> Option<DropTempTable>
Consumes self and returns the inner DropTempTable if this is that variant, or None otherwise.
Sourcepub const fn is_drop_temp_trigger(&self) -> bool
pub const fn is_drop_temp_trigger(&self) -> bool
Returns true if this is the DropTempTrigger variant.
Sourcepub const fn as_drop_temp_trigger(&self) -> Option<&DropTempTrigger>
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.
Sourcepub fn into_drop_temp_trigger(self) -> Option<DropTempTrigger>
pub fn into_drop_temp_trigger(self) -> Option<DropTempTrigger>
Consumes self and returns the inner DropTempTrigger if this is that variant, or None otherwise.
Sourcepub const fn is_drop_temp_view(&self) -> bool
pub const fn is_drop_temp_view(&self) -> bool
Returns true if this is the DropTempView variant.
Sourcepub const fn as_drop_temp_view(&self) -> Option<&DropTempView>
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.
Sourcepub fn into_drop_temp_view(self) -> Option<DropTempView>
pub fn into_drop_temp_view(self) -> Option<DropTempView>
Consumes self and returns the inner DropTempView if this is that variant, or None otherwise.
Sourcepub const fn is_drop_trigger(&self) -> bool
pub const fn is_drop_trigger(&self) -> bool
Returns true if this is the DropTrigger variant.
Sourcepub const fn as_drop_trigger(&self) -> Option<&DropTrigger>
pub const fn as_drop_trigger(&self) -> Option<&DropTrigger>
Returns a reference to the inner DropTrigger if this is that variant, or None otherwise.
Sourcepub fn into_drop_trigger(self) -> Option<DropTrigger>
pub fn into_drop_trigger(self) -> Option<DropTrigger>
Consumes self and returns the inner DropTrigger if this is that variant, or None otherwise.
Sourcepub const fn is_drop_view(&self) -> bool
pub const fn is_drop_view(&self) -> bool
Returns true if this is the DropView variant.
Sourcepub const fn as_drop_view(&self) -> Option<&DropView>
pub const fn as_drop_view(&self) -> Option<&DropView>
Returns a reference to the inner DropView if this is that variant, or None otherwise.
Sourcepub fn into_drop_view(self) -> Option<DropView>
pub fn into_drop_view(self) -> Option<DropView>
Consumes self and returns the inner DropView if this is that variant, or None otherwise.
Sourcepub const fn as_insert(&self) -> Option<&Insert>
pub const fn as_insert(&self) -> Option<&Insert>
Returns a reference to the inner Insert if this is that variant, or None otherwise.
Sourcepub fn into_insert(self) -> Option<Insert>
pub fn into_insert(self) -> Option<Insert>
Consumes self and returns the inner Insert if this is that variant, or None otherwise.
Sourcepub const fn as_pragma(&self) -> Option<&Pragma>
pub const fn as_pragma(&self) -> Option<&Pragma>
Returns a reference to the inner Pragma if this is that variant, or None otherwise.
Sourcepub fn into_pragma(self) -> Option<Pragma>
pub fn into_pragma(self) -> Option<Pragma>
Consumes self and returns the inner Pragma if this is that variant, or None otherwise.
Sourcepub const fn as_read(&self) -> Option<&Read>
pub const fn as_read(&self) -> Option<&Read>
Returns a reference to the inner Read if this is that variant, or None otherwise.
Sourcepub fn into_read(self) -> Option<Read>
pub fn into_read(self) -> Option<Read>
Consumes self and returns the inner Read if this is that variant, or None otherwise.
Sourcepub const fn as_select(&self) -> Option<&Select>
pub const fn as_select(&self) -> Option<&Select>
Returns a reference to the inner Select if this is that variant, or None otherwise.
Sourcepub fn into_select(self) -> Option<Select>
pub fn into_select(self) -> Option<Select>
Consumes self and returns the inner Select if this is that variant, or None otherwise.
Sourcepub const fn is_transaction(&self) -> bool
pub const fn is_transaction(&self) -> bool
Returns true if this is the Transaction variant.
Sourcepub const fn as_transaction(&self) -> Option<&Transaction>
pub const fn as_transaction(&self) -> Option<&Transaction>
Returns a reference to the inner Transaction if this is that variant, or None otherwise.
Sourcepub fn into_transaction(self) -> Option<Transaction>
pub fn into_transaction(self) -> Option<Transaction>
Consumes self and returns the inner Transaction if this is that variant, or None otherwise.
Sourcepub const fn as_update(&self) -> Option<&Update>
pub const fn as_update(&self) -> Option<&Update>
Returns a reference to the inner Update if this is that variant, or None otherwise.
Sourcepub fn into_update(self) -> Option<Update>
pub fn into_update(self) -> Option<Update>
Consumes self and returns the inner Update if this is that variant, or None otherwise.
Sourcepub const fn as_attach(&self) -> Option<&Attach>
pub const fn as_attach(&self) -> Option<&Attach>
Returns a reference to the inner Attach if this is that variant, or None otherwise.
Sourcepub fn into_attach(self) -> Option<Attach>
pub fn into_attach(self) -> Option<Attach>
Consumes self and returns the inner Attach if this is that variant, or None otherwise.
Sourcepub const fn as_detach(&self) -> Option<&Detach>
pub const fn as_detach(&self) -> Option<&Detach>
Returns a reference to the inner Detach if this is that variant, or None otherwise.
Sourcepub fn into_detach(self) -> Option<Detach>
pub fn into_detach(self) -> Option<Detach>
Consumes self and returns the inner Detach if this is that variant, or None otherwise.
Sourcepub const fn is_alter_table(&self) -> bool
pub const fn is_alter_table(&self) -> bool
Returns true if this is the AlterTable variant.
Sourcepub const fn as_alter_table(&self) -> Option<&AlterTable>
pub const fn as_alter_table(&self) -> Option<&AlterTable>
Returns a reference to the inner AlterTable if this is that variant, or None otherwise.
Sourcepub fn into_alter_table(self) -> Option<AlterTable>
pub fn into_alter_table(self) -> Option<AlterTable>
Consumes self and returns the inner AlterTable if this is that variant, or None otherwise.
Sourcepub const fn is_reindex(&self) -> bool
pub const fn is_reindex(&self) -> bool
Returns true if this is the Reindex variant.
Sourcepub const fn as_reindex(&self) -> Option<&Reindex>
pub const fn as_reindex(&self) -> Option<&Reindex>
Returns a reference to the inner Reindex if this is that variant, or None otherwise.
Sourcepub fn into_reindex(self) -> Option<Reindex>
pub fn into_reindex(self) -> Option<Reindex>
Consumes self and returns the inner Reindex if this is that variant, or None otherwise.
Sourcepub const fn is_analyze(&self) -> bool
pub const fn is_analyze(&self) -> bool
Returns true if this is the Analyze variant.
Sourcepub const fn as_analyze(&self) -> Option<&Analyze>
pub const fn as_analyze(&self) -> Option<&Analyze>
Returns a reference to the inner Analyze if this is that variant, or None otherwise.
Sourcepub fn into_analyze(self) -> Option<Analyze>
pub fn into_analyze(self) -> Option<Analyze>
Consumes self and returns the inner Analyze if this is that variant, or None otherwise.
Sourcepub const fn is_create_vtable(&self) -> bool
pub const fn is_create_vtable(&self) -> bool
Returns true if this is the CreateVtable variant.
Sourcepub const fn as_create_vtable(&self) -> Option<&CreateVtable>
pub const fn as_create_vtable(&self) -> Option<&CreateVtable>
Returns a reference to the inner CreateVtable if this is that variant, or None otherwise.
Sourcepub fn into_create_vtable(self) -> Option<CreateVtable>
pub fn into_create_vtable(self) -> Option<CreateVtable>
Consumes self and returns the inner CreateVtable if this is that variant, or None otherwise.
Sourcepub const fn is_drop_vtable(&self) -> bool
pub const fn is_drop_vtable(&self) -> bool
Returns true if this is the DropVtable variant.
Sourcepub const fn as_drop_vtable(&self) -> Option<&DropVtable>
pub const fn as_drop_vtable(&self) -> Option<&DropVtable>
Returns a reference to the inner DropVtable if this is that variant, or None otherwise.
Sourcepub fn into_drop_vtable(self) -> Option<DropVtable>
pub fn into_drop_vtable(self) -> Option<DropVtable>
Consumes self and returns the inner DropVtable if this is that variant, or None otherwise.
Sourcepub const fn is_function(&self) -> bool
pub const fn is_function(&self) -> bool
Returns true if this is the Function variant.
Sourcepub const fn as_function(&self) -> Option<&Function>
pub const fn as_function(&self) -> Option<&Function>
Returns a reference to the inner Function if this is that variant, or None otherwise.
Sourcepub fn into_function(self) -> Option<Function>
pub fn into_function(self) -> Option<Function>
Consumes self and returns the inner Function if this is that variant, or None otherwise.
Sourcepub const fn is_savepoint(&self) -> bool
pub const fn is_savepoint(&self) -> bool
Returns true if this is the Savepoint variant.
Sourcepub const fn as_savepoint(&self) -> Option<&Savepoint>
pub const fn as_savepoint(&self) -> Option<&Savepoint>
Returns a reference to the inner Savepoint if this is that variant, or None otherwise.
Sourcepub fn into_savepoint(self) -> Option<Savepoint>
pub fn into_savepoint(self) -> Option<Savepoint>
Consumes self and returns the inner Savepoint if this is that variant, or None otherwise.
Sourcepub const fn is_recursive(&self) -> bool
pub const fn is_recursive(&self) -> bool
Returns true if this is the Recursive variant.
Sourcepub const fn as_recursive(&self) -> Option<&Recursive>
pub const fn as_recursive(&self) -> Option<&Recursive>
Returns a reference to the inner Recursive if this is that variant, or None otherwise.
Sourcepub fn into_recursive(self) -> Option<Recursive>
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
impl Clone for AccessControlSelector
Source§fn clone(&self) -> AccessControlSelector
fn clone(&self) -> AccessControlSelector
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AccessControlSelector
impl Debug for AccessControlSelector
Source§impl Display for AccessControlSelector
Delegates to the wrapped selector variant’s Display
implementation, producing the CLI selector syntax.
impl Display for AccessControlSelector
Delegates to the wrapped selector variant’s Display
implementation, producing the CLI selector syntax.
Source§impl From<AccessControlSelector> for String
Converts an AccessControlSelector into its string
representation via Display.
impl From<AccessControlSelector> for String
Converts an AccessControlSelector into its string
representation via Display.
Source§fn from(v: AccessControlSelector) -> Self
fn from(v: AccessControlSelector) -> Self
Source§impl From<AlterTable> for AccessControlSelector
Converts a AlterTable into its corresponding AccessControlSelector variant.
impl From<AlterTable> for AccessControlSelector
Converts a AlterTable into its corresponding AccessControlSelector variant.
Source§fn from(value: AlterTable) -> Self
fn from(value: AlterTable) -> Self
Source§impl From<Analyze> for AccessControlSelector
Converts a Analyze into its corresponding AccessControlSelector variant.
impl From<Analyze> for AccessControlSelector
Converts a Analyze into its corresponding AccessControlSelector variant.
Source§impl From<Attach> for AccessControlSelector
Converts a Attach into its corresponding AccessControlSelector variant.
impl From<Attach> for AccessControlSelector
Converts a Attach into its corresponding AccessControlSelector variant.
Source§impl From<CreateIndex> for AccessControlSelector
Converts a CreateIndex into its corresponding AccessControlSelector variant.
impl From<CreateIndex> for AccessControlSelector
Converts a CreateIndex into its corresponding AccessControlSelector variant.
Source§fn from(value: CreateIndex) -> Self
fn from(value: CreateIndex) -> Self
Source§impl From<CreateTable> for AccessControlSelector
Converts a CreateTable into its corresponding AccessControlSelector variant.
impl From<CreateTable> for AccessControlSelector
Converts a CreateTable into its corresponding AccessControlSelector variant.
Source§fn from(value: CreateTable) -> Self
fn from(value: CreateTable) -> Self
Source§impl From<CreateTempIndex> for AccessControlSelector
Converts a CreateTempIndex into its corresponding AccessControlSelector variant.
impl From<CreateTempIndex> for AccessControlSelector
Converts a CreateTempIndex into its corresponding AccessControlSelector variant.
Source§fn from(value: CreateTempIndex) -> Self
fn from(value: CreateTempIndex) -> Self
Source§impl From<CreateTempTable> for AccessControlSelector
Converts a CreateTempTable into its corresponding AccessControlSelector variant.
impl From<CreateTempTable> for AccessControlSelector
Converts a CreateTempTable into its corresponding AccessControlSelector variant.
Source§fn from(value: CreateTempTable) -> Self
fn from(value: CreateTempTable) -> Self
Source§impl From<CreateTempTrigger> for AccessControlSelector
Converts a CreateTempTrigger into its corresponding AccessControlSelector variant.
impl From<CreateTempTrigger> for AccessControlSelector
Converts a CreateTempTrigger into its corresponding AccessControlSelector variant.
Source§fn from(value: CreateTempTrigger) -> Self
fn from(value: CreateTempTrigger) -> Self
Source§impl From<CreateTempView> for AccessControlSelector
Converts a CreateTempView into its corresponding AccessControlSelector variant.
impl From<CreateTempView> for AccessControlSelector
Converts a CreateTempView into its corresponding AccessControlSelector variant.
Source§fn from(value: CreateTempView) -> Self
fn from(value: CreateTempView) -> Self
Source§impl From<CreateTrigger> for AccessControlSelector
Converts a CreateTrigger into its corresponding AccessControlSelector variant.
impl From<CreateTrigger> for AccessControlSelector
Converts a CreateTrigger into its corresponding AccessControlSelector variant.
Source§fn from(value: CreateTrigger) -> Self
fn from(value: CreateTrigger) -> Self
Source§impl From<CreateView> for AccessControlSelector
Converts a CreateView into its corresponding AccessControlSelector variant.
impl From<CreateView> for AccessControlSelector
Converts a CreateView into its corresponding AccessControlSelector variant.
Source§fn from(value: CreateView) -> Self
fn from(value: CreateView) -> Self
Source§impl From<CreateVtable> for AccessControlSelector
Converts a CreateVtable into its corresponding AccessControlSelector variant.
impl From<CreateVtable> for AccessControlSelector
Converts a CreateVtable into its corresponding AccessControlSelector variant.
Source§fn from(value: CreateVtable) -> Self
fn from(value: CreateVtable) -> Self
Source§impl From<Delete> for AccessControlSelector
Converts a Delete into its corresponding AccessControlSelector variant.
impl From<Delete> for AccessControlSelector
Converts a Delete into its corresponding AccessControlSelector variant.
Source§impl From<Detach> for AccessControlSelector
Converts a Detach into its corresponding AccessControlSelector variant.
impl From<Detach> for AccessControlSelector
Converts a Detach into its corresponding AccessControlSelector variant.
Source§impl From<DropIndex> for AccessControlSelector
Converts a DropIndex into its corresponding AccessControlSelector variant.
impl From<DropIndex> for AccessControlSelector
Converts a DropIndex into its corresponding AccessControlSelector variant.
Source§impl From<DropTable> for AccessControlSelector
Converts a DropTable into its corresponding AccessControlSelector variant.
impl From<DropTable> for AccessControlSelector
Converts a DropTable into its corresponding AccessControlSelector variant.
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<DropTempTable> for AccessControlSelector
Converts a DropTempTable into its corresponding AccessControlSelector variant.
impl From<DropTempTable> for AccessControlSelector
Converts a DropTempTable into its corresponding AccessControlSelector variant.
Source§fn from(value: DropTempTable) -> Self
fn from(value: DropTempTable) -> Self
Source§impl From<DropTempTrigger> for AccessControlSelector
Converts a DropTempTrigger into its corresponding AccessControlSelector variant.
impl From<DropTempTrigger> for AccessControlSelector
Converts a DropTempTrigger into its corresponding AccessControlSelector variant.
Source§fn from(value: DropTempTrigger) -> Self
fn from(value: DropTempTrigger) -> Self
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<DropTrigger> for AccessControlSelector
Converts a DropTrigger into its corresponding AccessControlSelector variant.
impl From<DropTrigger> for AccessControlSelector
Converts a DropTrigger into its corresponding AccessControlSelector variant.
Source§fn from(value: DropTrigger) -> Self
fn from(value: DropTrigger) -> Self
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 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<Function> for AccessControlSelector
Converts a Function into its corresponding AccessControlSelector variant.
impl From<Function> for AccessControlSelector
Converts a Function into its corresponding AccessControlSelector variant.
Source§impl From<Insert> for AccessControlSelector
Converts a Insert into its corresponding AccessControlSelector variant.
impl From<Insert> for AccessControlSelector
Converts a Insert into its corresponding AccessControlSelector variant.
Source§impl From<Pragma> for AccessControlSelector
Converts a Pragma into its corresponding AccessControlSelector variant.
impl From<Pragma> for AccessControlSelector
Converts a Pragma into its corresponding AccessControlSelector variant.
Source§impl From<Read> for AccessControlSelector
Converts a Read into its corresponding AccessControlSelector variant.
impl From<Read> for AccessControlSelector
Converts a Read into its corresponding AccessControlSelector variant.
Source§impl From<Recursive> for AccessControlSelector
Converts a Recursive into its corresponding AccessControlSelector variant.
impl From<Recursive> for AccessControlSelector
Converts a Recursive into its corresponding AccessControlSelector variant.
Source§impl From<Reindex> for AccessControlSelector
Converts a Reindex into its corresponding AccessControlSelector variant.
impl From<Reindex> for AccessControlSelector
Converts a Reindex into its corresponding AccessControlSelector variant.
Source§impl From<Savepoint> for AccessControlSelector
Converts a Savepoint into its corresponding AccessControlSelector variant.
impl From<Savepoint> for AccessControlSelector
Converts a Savepoint into its corresponding AccessControlSelector variant.
Source§impl From<Select> for AccessControlSelector
Converts a Select into its corresponding AccessControlSelector variant.
impl From<Select> for AccessControlSelector
Converts a Select into its corresponding AccessControlSelector variant.
Source§impl From<Transaction> for AccessControlSelector
Converts a Transaction into its corresponding AccessControlSelector variant.
impl From<Transaction> for AccessControlSelector
Converts a Transaction into its corresponding AccessControlSelector variant.
Source§fn from(value: Transaction) -> Self
fn from(value: Transaction) -> Self
Source§impl From<Update> for AccessControlSelector
Converts a Update into its corresponding AccessControlSelector variant.
impl From<Update> for AccessControlSelector
Converts a Update into its corresponding AccessControlSelector variant.
Source§impl FromStr for AccessControlSelector
Parses a selector string by extracting the leading
identifier and dispatching to the corresponding variant’s
FromStr implementation.
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§impl Hash for AccessControlSelector
impl Hash for AccessControlSelector
Source§impl Ord for AccessControlSelector
impl Ord for AccessControlSelector
Source§fn cmp(&self, other: &AccessControlSelector) -> Ordering
fn cmp(&self, other: &AccessControlSelector) -> 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 AccessControlSelector
impl PartialEq for AccessControlSelector
Source§impl PartialOrd for AccessControlSelector
impl PartialOrd for AccessControlSelector
Source§impl TryFrom<String> for AccessControlSelector
Parses an owned String into an AccessControlSelector
by delegating to FromStr.
impl TryFrom<String> for AccessControlSelector
Parses an owned String into an AccessControlSelector
by delegating to FromStr.