#[non_exhaustive]pub struct BatchIsAuthorizedWithTokenOutputItem {
pub request: Option<BatchIsAuthorizedWithTokenInputItem>,
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 BatchIsAuthorizedWithToken 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<BatchIsAuthorizedWithTokenInputItem>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 BatchIsAuthorizedWithTokenOutputItem
impl BatchIsAuthorizedWithTokenOutputItem
sourcepub fn request(&self) -> Option<&BatchIsAuthorizedWithTokenInputItem>
pub fn request(&self) -> Option<&BatchIsAuthorizedWithTokenInputItem>
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 BatchIsAuthorizedWithTokenOutputItem
impl BatchIsAuthorizedWithTokenOutputItem
sourcepub fn builder() -> BatchIsAuthorizedWithTokenOutputItemBuilder
pub fn builder() -> BatchIsAuthorizedWithTokenOutputItemBuilder
Creates a new builder-style object to manufacture BatchIsAuthorizedWithTokenOutputItem.
Trait Implementations§
source§impl Clone for BatchIsAuthorizedWithTokenOutputItem
impl Clone for BatchIsAuthorizedWithTokenOutputItem
source§fn clone(&self) -> BatchIsAuthorizedWithTokenOutputItem
fn clone(&self) -> BatchIsAuthorizedWithTokenOutputItem
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl PartialEq for BatchIsAuthorizedWithTokenOutputItem
impl PartialEq for BatchIsAuthorizedWithTokenOutputItem
source§fn eq(&self, other: &BatchIsAuthorizedWithTokenOutputItem) -> bool
fn eq(&self, other: &BatchIsAuthorizedWithTokenOutputItem) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for BatchIsAuthorizedWithTokenOutputItem
Auto Trait Implementations§
impl Freeze for BatchIsAuthorizedWithTokenOutputItem
impl RefUnwindSafe for BatchIsAuthorizedWithTokenOutputItem
impl Send for BatchIsAuthorizedWithTokenOutputItem
impl Sync for BatchIsAuthorizedWithTokenOutputItem
impl Unpin for BatchIsAuthorizedWithTokenOutputItem
impl UnwindSafe for BatchIsAuthorizedWithTokenOutputItem
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