pub enum PolicyResult {
Allowed,
Denied {
policy_name: String,
reason: String,
},
}Expand description
Result of a policy check.
Variants§
Implementations§
Source§impl PolicyResult
impl PolicyResult
pub fn is_allowed(&self) -> bool
Trait Implementations§
Source§impl Clone for PolicyResult
impl Clone for PolicyResult
Source§fn clone(&self) -> PolicyResult
fn clone(&self) -> PolicyResult
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 PolicyResult
impl Debug for PolicyResult
Source§impl PartialEq for PolicyResult
impl PartialEq for PolicyResult
impl Eq for PolicyResult
impl StructuralPartialEq for PolicyResult
Auto Trait Implementations§
impl Freeze for PolicyResult
impl RefUnwindSafe for PolicyResult
impl Send for PolicyResult
impl Sync for PolicyResult
impl Unpin for PolicyResult
impl UnsafeUnpin for PolicyResult
impl UnwindSafe for PolicyResult
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