#[non_exhaustive]pub struct BatchIsAuthorizedWithTokenInputItem {
pub action: Option<ActionIdentifier>,
pub resource: Option<EntityIdentifier>,
pub context: Option<ContextDefinition>,
}Expand description
An authorization request that you include in a BatchIsAuthorizedWithToken API request.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.action: Option<ActionIdentifier>Specifies the requested action to be authorized. For example, PhotoFlash::ReadPhoto.
resource: Option<EntityIdentifier>Specifies the resource that you want an authorization decision for. For example, PhotoFlash::Photo.
context: Option<ContextDefinition>Specifies additional context that can be used to make more granular authorization decisions.
Implementations§
source§impl BatchIsAuthorizedWithTokenInputItem
impl BatchIsAuthorizedWithTokenInputItem
sourcepub fn action(&self) -> Option<&ActionIdentifier>
pub fn action(&self) -> Option<&ActionIdentifier>
Specifies the requested action to be authorized. For example, PhotoFlash::ReadPhoto.
sourcepub fn resource(&self) -> Option<&EntityIdentifier>
pub fn resource(&self) -> Option<&EntityIdentifier>
Specifies the resource that you want an authorization decision for. For example, PhotoFlash::Photo.
sourcepub fn context(&self) -> Option<&ContextDefinition>
pub fn context(&self) -> Option<&ContextDefinition>
Specifies additional context that can be used to make more granular authorization decisions.
source§impl BatchIsAuthorizedWithTokenInputItem
impl BatchIsAuthorizedWithTokenInputItem
sourcepub fn builder() -> BatchIsAuthorizedWithTokenInputItemBuilder
pub fn builder() -> BatchIsAuthorizedWithTokenInputItemBuilder
Creates a new builder-style object to manufacture BatchIsAuthorizedWithTokenInputItem.
Trait Implementations§
source§impl Clone for BatchIsAuthorizedWithTokenInputItem
impl Clone for BatchIsAuthorizedWithTokenInputItem
source§fn clone(&self) -> BatchIsAuthorizedWithTokenInputItem
fn clone(&self) -> BatchIsAuthorizedWithTokenInputItem
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 PartialEq for BatchIsAuthorizedWithTokenInputItem
impl PartialEq for BatchIsAuthorizedWithTokenInputItem
source§fn eq(&self, other: &BatchIsAuthorizedWithTokenInputItem) -> bool
fn eq(&self, other: &BatchIsAuthorizedWithTokenInputItem) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for BatchIsAuthorizedWithTokenInputItem
Auto Trait Implementations§
impl Freeze for BatchIsAuthorizedWithTokenInputItem
impl RefUnwindSafe for BatchIsAuthorizedWithTokenInputItem
impl Send for BatchIsAuthorizedWithTokenInputItem
impl Sync for BatchIsAuthorizedWithTokenInputItem
impl Unpin for BatchIsAuthorizedWithTokenInputItem
impl UnwindSafe for BatchIsAuthorizedWithTokenInputItem
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
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.