Struct aws_sdk_verifiedpermissions::operation::is_authorized_with_token::IsAuthorizedWithTokenOutput
source · #[non_exhaustive]pub struct IsAuthorizedWithTokenOutput {
pub decision: Decision,
pub determining_policies: Vec<DeterminingPolicyItem>,
pub errors: Vec<EvaluationErrorItem>,
pub principal: Option<EntityIdentifier>,
/* 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 multiple matching policies, where at least one is a forbid policy, then because forbid always overrides permit the forbid policies are the determining policies. If all matching policies are permit policies, then those policies are the determining policies. When no policies match and the response is the default DENY, there are 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.
principal: Option<EntityIdentifier>The identifier of the principal in the ID or access token.
Implementations§
source§impl IsAuthorizedWithTokenOutput
impl IsAuthorizedWithTokenOutput
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 multiple matching policies, where at least one is a forbid policy, then because forbid always overrides permit the forbid policies are the determining policies. If all matching policies are permit policies, then those policies are the determining policies. When no policies match and the response is the default DENY, there are 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.
sourcepub fn principal(&self) -> Option<&EntityIdentifier>
pub fn principal(&self) -> Option<&EntityIdentifier>
The identifier of the principal in the ID or access token.
source§impl IsAuthorizedWithTokenOutput
impl IsAuthorizedWithTokenOutput
sourcepub fn builder() -> IsAuthorizedWithTokenOutputBuilder
pub fn builder() -> IsAuthorizedWithTokenOutputBuilder
Creates a new builder-style object to manufacture IsAuthorizedWithTokenOutput.
Trait Implementations§
source§impl Clone for IsAuthorizedWithTokenOutput
impl Clone for IsAuthorizedWithTokenOutput
source§fn clone(&self) -> IsAuthorizedWithTokenOutput
fn clone(&self) -> IsAuthorizedWithTokenOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for IsAuthorizedWithTokenOutput
impl Debug for IsAuthorizedWithTokenOutput
source§impl PartialEq for IsAuthorizedWithTokenOutput
impl PartialEq for IsAuthorizedWithTokenOutput
source§fn eq(&self, other: &IsAuthorizedWithTokenOutput) -> bool
fn eq(&self, other: &IsAuthorizedWithTokenOutput) -> bool
self and other values to be equal, and is used
by ==.source§impl RequestId for IsAuthorizedWithTokenOutput
impl RequestId for IsAuthorizedWithTokenOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None if the service could not be reached.impl StructuralPartialEq for IsAuthorizedWithTokenOutput
Auto Trait Implementations§
impl Freeze for IsAuthorizedWithTokenOutput
impl RefUnwindSafe for IsAuthorizedWithTokenOutput
impl Send for IsAuthorizedWithTokenOutput
impl Sync for IsAuthorizedWithTokenOutput
impl Unpin for IsAuthorizedWithTokenOutput
impl UnwindSafe for IsAuthorizedWithTokenOutput
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