pub enum Authorization {
Granted {
grant: Grant,
},
Denied {
reason: String,
},
PendingApproval {
params_hash: String,
},
}Expand description
Result of an authorization check.
Variants§
Granted
The call is authorized by an existing grant.
Denied
The call is denied (no grant and policy is AutoDeny).
PendingApproval
Authorization is pending user approval (no grant and policy is Interactive).
Implementations§
Source§impl Authorization
impl Authorization
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 moreAuto Trait Implementations§
impl Freeze for Authorization
impl RefUnwindSafe for Authorization
impl Send for Authorization
impl Sync for Authorization
impl Unpin 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