Struct k8s_openapi::api::authorization::v1::SubjectAccessReviewStatus
source · 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
source§impl PartialEq<SubjectAccessReviewStatus> for SubjectAccessReviewStatus
impl PartialEq<SubjectAccessReviewStatus> for SubjectAccessReviewStatus
source§fn eq(&self, other: &SubjectAccessReviewStatus) -> bool
fn eq(&self, other: &SubjectAccessReviewStatus) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SubjectAccessReviewStatus
Auto Trait Implementations§
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