#[non_exhaustive]pub struct BatchIsAuthorizedOutputItem {
pub request: Option<BatchIsAuthorizedInputItem>,
pub decision: Decision,
pub determining_policies: Vec<DeterminingPolicyItem>,
pub errors: Vec<EvaluationErrorItem>,
}Expand description
The decision, based on policy evaluation, from an individual authorization request in a BatchIsAuthorized API request.
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.request: Option<BatchIsAuthorizedInputItem>The authorization request that initiated the decision.
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 might reference an entity or attribute that doesn't exist in the request.
Implementations§
source§impl BatchIsAuthorizedOutputItem
impl BatchIsAuthorizedOutputItem
sourcepub fn request(&self) -> Option<&BatchIsAuthorizedInputItem>
pub fn request(&self) -> Option<&BatchIsAuthorizedInputItem>
The authorization request that initiated the decision.
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 might reference an entity or attribute that doesn't exist in the request.
source§impl BatchIsAuthorizedOutputItem
impl BatchIsAuthorizedOutputItem
sourcepub fn builder() -> BatchIsAuthorizedOutputItemBuilder
pub fn builder() -> BatchIsAuthorizedOutputItemBuilder
Creates a new builder-style object to manufacture BatchIsAuthorizedOutputItem.
Trait Implementations§
source§impl Clone for BatchIsAuthorizedOutputItem
impl Clone for BatchIsAuthorizedOutputItem
source§fn clone(&self) -> BatchIsAuthorizedOutputItem
fn clone(&self) -> BatchIsAuthorizedOutputItem
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for BatchIsAuthorizedOutputItem
impl Debug for BatchIsAuthorizedOutputItem
source§impl PartialEq for BatchIsAuthorizedOutputItem
impl PartialEq for BatchIsAuthorizedOutputItem
source§fn eq(&self, other: &BatchIsAuthorizedOutputItem) -> bool
fn eq(&self, other: &BatchIsAuthorizedOutputItem) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for BatchIsAuthorizedOutputItem
Auto Trait Implementations§
impl Freeze for BatchIsAuthorizedOutputItem
impl RefUnwindSafe for BatchIsAuthorizedOutputItem
impl Send for BatchIsAuthorizedOutputItem
impl Sync for BatchIsAuthorizedOutputItem
impl Unpin for BatchIsAuthorizedOutputItem
impl UnwindSafe for BatchIsAuthorizedOutputItem
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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