pub enum Authorization {
Allow,
Deny,
}Expand description
The outcome of a policy check against the configured rule set.
Variants§
Trait Implementations§
Source§impl Clone for Authorization
impl Clone for Authorization
Source§fn clone(&self) -> Authorization
fn clone(&self) -> Authorization
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 Debug for Authorization
impl Debug for Authorization
Source§impl From<Authorization> for Authorization
Maps this crate’s Authorization to rusqlite’s equivalent so that policy
verdicts can be returned directly from the authorization hook.
impl From<Authorization> for Authorization
Maps this crate’s Authorization to rusqlite’s equivalent so that policy
verdicts can be returned directly from the authorization hook.
Source§fn from(value: Authorization) -> Self
fn from(value: Authorization) -> Self
Converts to this type from the input type.
Source§impl Hash for Authorization
impl Hash for Authorization
Source§impl Ord for Authorization
impl Ord for Authorization
Source§fn cmp(&self, other: &Authorization) -> Ordering
fn cmp(&self, other: &Authorization) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Authorization
impl PartialEq for Authorization
Source§impl PartialOrd for Authorization
impl PartialOrd for Authorization
impl Copy for Authorization
impl Eq for Authorization
impl StructuralPartialEq for Authorization
Auto Trait Implementations§
impl Freeze for Authorization
impl RefUnwindSafe for Authorization
impl Send for Authorization
impl Sync for Authorization
impl Unpin for Authorization
impl UnsafeUnpin for Authorization
impl UnwindSafe for Authorization
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