Struct rusqlite::hooks::AuthContext
source · [−]pub struct AuthContext<'c> {
pub action: AuthAction<'c>,
pub database_name: Option<&'c str>,
pub accessor: Option<&'c str>,
}
This is supported on crate feature
hooks
only.Expand description
The context recieved 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
sourceimpl<'c> Clone for AuthContext<'c>
impl<'c> Clone for AuthContext<'c>
sourcefn clone(&self) -> AuthContext<'c>
fn clone(&self) -> AuthContext<'c>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'c> Debug for AuthContext<'c>
impl<'c> Debug for AuthContext<'c>
sourceimpl<'c> PartialEq<AuthContext<'c>> for AuthContext<'c>
impl<'c> PartialEq<AuthContext<'c>> for AuthContext<'c>
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &AuthContext<'c>) -> bool
fn ne(&self, other: &AuthContext<'c>) -> bool
This method tests for !=
.
impl<'c> Copy 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more