pub enum AuthorizationResult {
Allowed,
Denied {
reason: Option<String>,
},
}Expand description
The result of an authorization decision.
Variants§
Implementations§
Source§impl AuthorizationResult
impl AuthorizationResult
Sourcepub fn is_allowed(&self) -> bool
pub fn is_allowed(&self) -> bool
Returns true when the operation is allowed.
Trait Implementations§
Source§impl Clone for AuthorizationResult
impl Clone for AuthorizationResult
Source§impl Debug for AuthorizationResult
impl Debug for AuthorizationResult
impl Eq for AuthorizationResult
Source§impl PartialEq for AuthorizationResult
impl PartialEq for AuthorizationResult
impl StructuralPartialEq for AuthorizationResult
Auto Trait Implementations§
impl Freeze for AuthorizationResult
impl RefUnwindSafe for AuthorizationResult
impl Send for AuthorizationResult
impl Sync for AuthorizationResult
impl Unpin for AuthorizationResult
impl UnsafeUnpin for AuthorizationResult
impl UnwindSafe for AuthorizationResult
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