pub enum PolicyDecision {
Granted,
Denied {
reason: String,
},
DeniedByExposure {
label: ExposureLabel,
blocked_target: ObjectId,
},
}Expand description
Result of a policy evaluation.
Variants§
Granted
The capability request is granted.
Denied
The capability request is denied by policy (object doesn’t hold this capability).
DeniedByExposure
The capability request is denied due to exposure restrictions.
Implementations§
Source§impl PolicyDecision
impl PolicyDecision
pub fn is_granted(&self) -> bool
Trait Implementations§
Source§impl Clone for PolicyDecision
impl Clone for PolicyDecision
Source§fn clone(&self) -> PolicyDecision
fn clone(&self) -> PolicyDecision
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 PolicyDecision
impl RefUnwindSafe for PolicyDecision
impl Send for PolicyDecision
impl Sync for PolicyDecision
impl Unpin for PolicyDecision
impl UnsafeUnpin for PolicyDecision
impl UnwindSafe for PolicyDecision
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