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 duplicate 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>
impl<'c> Copy for AuthContext<'c>
impl<'c> Eq for AuthContext<'c>
impl<'c> StructuralPartialEq for AuthContext<'c>
Auto Trait Implementations§
impl<'c> Freeze for AuthContext<'c>
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