pub struct SubjectAccessReviewStatus {
pub allowed: bool,
pub denied: Option<bool>,
pub evaluation_error: Option<String>,
pub reason: Option<String>,
}
Expand description
SubjectAccessReviewStatus
Fields§
§allowed: bool
Allowed is required. True if the action would be allowed, false otherwise.
denied: Option<bool>
Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true.
evaluation_error: Option<String>
EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request.
reason: Option<String>
Reason is optional. It indicates why a request was allowed or denied.
Trait Implementations§
Source§impl Clone for SubjectAccessReviewStatus
impl Clone for SubjectAccessReviewStatus
Source§fn clone(&self) -> SubjectAccessReviewStatus
fn clone(&self) -> SubjectAccessReviewStatus
Returns a copy 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 SubjectAccessReviewStatus
impl Debug for SubjectAccessReviewStatus
Source§impl DeepMerge for SubjectAccessReviewStatus
impl DeepMerge for SubjectAccessReviewStatus
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.Source§impl Default for SubjectAccessReviewStatus
impl Default for SubjectAccessReviewStatus
Source§fn default() -> SubjectAccessReviewStatus
fn default() -> SubjectAccessReviewStatus
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SubjectAccessReviewStatus
impl<'de> Deserialize<'de> for SubjectAccessReviewStatus
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for SubjectAccessReviewStatus
Auto Trait Implementations§
impl Freeze for SubjectAccessReviewStatus
impl RefUnwindSafe for SubjectAccessReviewStatus
impl Send for SubjectAccessReviewStatus
impl Sync for SubjectAccessReviewStatus
impl Unpin for SubjectAccessReviewStatus
impl UnwindSafe for SubjectAccessReviewStatus
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