Struct rusqlite::hooks::AuthContext
source · pub struct AuthContext<'c> {
pub action: AuthAction<'c>,
pub database_name: Option<&'c str>,
pub accessor: Option<&'c str>,
}
Available on crate feature
hooks
only.Expand description
The context received by an authorizer hook.
See https://sqlite.org/c3ref/set_authorizer.html for more info.
Fields§
§action: AuthAction<'c>
The action to be authorized.
database_name: Option<&'c str>
The database name, if applicable.
accessor: Option<&'c str>
The inner-most trigger or view responsible for the access attempt.
None
if the access attempt was made by top-level SQL code.
Trait Implementations§
source§impl<'c> Clone for AuthContext<'c>
impl<'c> Clone for AuthContext<'c>
source§fn clone(&self) -> AuthContext<'c>
fn clone(&self) -> AuthContext<'c>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'c> Debug for AuthContext<'c>
impl<'c> Debug for AuthContext<'c>
source§impl<'c> PartialEq for AuthContext<'c>
impl<'c> PartialEq for AuthContext<'c>
source§fn eq(&self, other: &AuthContext<'c>) -> bool
fn eq(&self, other: &AuthContext<'c>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'c> Copy for AuthContext<'c>
impl<'c> Eq for AuthContext<'c>
impl<'c> StructuralPartialEq for AuthContext<'c>
Auto Trait Implementations§
impl<'c> RefUnwindSafe for AuthContext<'c>
impl<'c> Send for AuthContext<'c>
impl<'c> Sync for AuthContext<'c>
impl<'c> Unpin for AuthContext<'c>
impl<'c> UnwindSafe for AuthContext<'c>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more