#[non_exhaustive]pub struct BatchIsAuthorizedInputItem {
pub principal: Option<EntityIdentifier>,
pub action: Option<ActionIdentifier>,
pub resource: Option<EntityIdentifier>,
pub context: Option<ContextDefinition>,
}Expand description
An authorization request that you include 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.principal: Option<EntityIdentifier>Specifies the principal for which the authorization decision is to be made.
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 BatchIsAuthorizedInputItem
impl BatchIsAuthorizedInputItem
sourcepub fn principal(&self) -> Option<&EntityIdentifier>
pub fn principal(&self) -> Option<&EntityIdentifier>
Specifies the principal for which the authorization decision is to be made.
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 BatchIsAuthorizedInputItem
impl BatchIsAuthorizedInputItem
sourcepub fn builder() -> BatchIsAuthorizedInputItemBuilder
pub fn builder() -> BatchIsAuthorizedInputItemBuilder
Creates a new builder-style object to manufacture BatchIsAuthorizedInputItem.
Trait Implementations§
source§impl Clone for BatchIsAuthorizedInputItem
impl Clone for BatchIsAuthorizedInputItem
source§fn clone(&self) -> BatchIsAuthorizedInputItem
fn clone(&self) -> BatchIsAuthorizedInputItem
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for BatchIsAuthorizedInputItem
impl Debug for BatchIsAuthorizedInputItem
source§impl PartialEq for BatchIsAuthorizedInputItem
impl PartialEq for BatchIsAuthorizedInputItem
source§fn eq(&self, other: &BatchIsAuthorizedInputItem) -> bool
fn eq(&self, other: &BatchIsAuthorizedInputItem) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for BatchIsAuthorizedInputItem
Auto Trait Implementations§
impl Freeze for BatchIsAuthorizedInputItem
impl RefUnwindSafe for BatchIsAuthorizedInputItem
impl Send for BatchIsAuthorizedInputItem
impl Sync for BatchIsAuthorizedInputItem
impl Unpin for BatchIsAuthorizedInputItem
impl UnwindSafe for BatchIsAuthorizedInputItem
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