#[non_exhaustive]pub struct IsAuthorizedOutput {
pub decision: Decision,
pub determining_policies: Vec<DeterminingPolicyItem>,
pub errors: Vec<EvaluationErrorItem>,
/* private fields */
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.decision: DecisionAn authorization decision that indicates if the authorization request should be allowed or denied.
determining_policies: Vec<DeterminingPolicyItem>The list of determining policies used to make the authorization decision. For example, if there are two matching policies, where one is a forbid and the other is a permit, then the forbid policy will be the determining policy. In the case of multiple matching permit policies then there would be multiple determining policies. In the case that no policies match, and hence the response is DENY, there would be no determining policies.
errors: Vec<EvaluationErrorItem>Errors that occurred while making an authorization decision, for example, a policy references an Entity or entity Attribute that does not exist in the slice.
Implementations§
source§impl IsAuthorizedOutput
impl IsAuthorizedOutput
sourcepub fn decision(&self) -> &Decision
pub fn decision(&self) -> &Decision
An authorization decision that indicates if the authorization request should be allowed or denied.
sourcepub fn determining_policies(&self) -> &[DeterminingPolicyItem]
pub fn determining_policies(&self) -> &[DeterminingPolicyItem]
The list of determining policies used to make the authorization decision. For example, if there are two matching policies, where one is a forbid and the other is a permit, then the forbid policy will be the determining policy. In the case of multiple matching permit policies then there would be multiple determining policies. In the case that no policies match, and hence the response is DENY, there would be no determining policies.
sourcepub fn errors(&self) -> &[EvaluationErrorItem]
pub fn errors(&self) -> &[EvaluationErrorItem]
Errors that occurred while making an authorization decision, for example, a policy references an Entity or entity Attribute that does not exist in the slice.
source§impl IsAuthorizedOutput
impl IsAuthorizedOutput
sourcepub fn builder() -> IsAuthorizedOutputBuilder
pub fn builder() -> IsAuthorizedOutputBuilder
Creates a new builder-style object to manufacture IsAuthorizedOutput.
Trait Implementations§
source§impl Clone for IsAuthorizedOutput
impl Clone for IsAuthorizedOutput
source§fn clone(&self) -> IsAuthorizedOutput
fn clone(&self) -> IsAuthorizedOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for IsAuthorizedOutput
impl Debug for IsAuthorizedOutput
source§impl PartialEq for IsAuthorizedOutput
impl PartialEq for IsAuthorizedOutput
source§fn eq(&self, other: &IsAuthorizedOutput) -> bool
fn eq(&self, other: &IsAuthorizedOutput) -> bool
self and other values to be equal, and is used
by ==.source§impl RequestId for IsAuthorizedOutput
impl RequestId for IsAuthorizedOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None if the service could not be reached.