pub struct PermissionCheckResult {
pub granted: bool,
pub audit: bool,
pub permissive: bool,
pub todo_bug: Option<NonZeroU32>,
}Expand description
Describes the result of a permission lookup between two Security Contexts.
Fields§
§granted: boolTrue if the specified permissions are granted by policy.
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”).
permissive: boolTrue if the access should be granted because either the security server is running in permissive mode, or the subject domain is marked as permissive.
todo_bug: Option<NonZeroU32>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.
Implementations§
Trait Implementations§
Source§impl Clone for PermissionCheckResult
impl Clone for PermissionCheckResult
Source§fn clone(&self) -> PermissionCheckResult
fn clone(&self) -> PermissionCheckResult
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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 UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more