pub struct PermissionCheckResult {
    pub permit: bool,
    pub audit: bool,
    pub todo_bug: Option<NonZeroU64>,
}Expand description
Describes the result of a permission lookup between two Security Contexts.
Fields§
§permit: boolTrue if the specified permissions should be permitted.
audit: boolTrue if details of the check should be audit logged. Audit logs are by default only output when the policy defines that the permissions should be denied (whether or not the check is “permissive”), but may be suppressed for some denials (“dontaudit”), or for some allowed permissions (“auditallow”).
todo_bug: Option<NonZeroU64>If the AccessDecision indicates that permission denials should not be enforced then permit
will be true, and this field will hold the Id of the bug to reference in audit logging.
Trait Implementations§
Source§impl Clone for PermissionCheckResult
 
impl Clone for PermissionCheckResult
Source§fn clone(&self) -> PermissionCheckResult
 
fn clone(&self) -> PermissionCheckResult
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 PermissionCheckResult
 
impl Debug for PermissionCheckResult
Source§impl PartialEq for PermissionCheckResult
 
impl PartialEq for PermissionCheckResult
impl StructuralPartialEq for PermissionCheckResult
Auto Trait Implementations§
impl Freeze for PermissionCheckResult
impl RefUnwindSafe for PermissionCheckResult
impl Send for PermissionCheckResult
impl Sync for PermissionCheckResult
impl Unpin for PermissionCheckResult
impl UnwindSafe for PermissionCheckResult
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