pub struct AppsyncIdentityCognito {
pub sub: String,
pub username: String,
pub issuer: String,
pub default_auth_strategy: AppsyncAuthStrategy,
pub source_ip: Vec<String>,
pub groups: Option<Vec<String>>,
pub claims: Value,
}
Expand description
Identity information for Cognito User Pools authenticated requests.
Fields§
§sub: String
Unique identifier of the authenticated user/client
username: String
Username of the authenticated user (from Cognito user pools)
issuer: String
Identity provider that authenticated the request (e.g. Cognito user pool URL)
default_auth_strategy: AppsyncAuthStrategy
Default authorization strategy for the authenticated identity
source_ip: Vec<String>
Source IP addresses associated with the request
groups: Option<Vec<String>>
Groups the authenticated user belongs to
claims: Value
Additional claims/attributes associated with the identity
Trait Implementations§
Source§impl Debug for AppsyncIdentityCognito
impl Debug for AppsyncIdentityCognito
Source§impl<'de> Deserialize<'de> for AppsyncIdentityCognito
impl<'de> Deserialize<'de> for AppsyncIdentityCognito
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AppsyncIdentityCognito
impl RefUnwindSafe for AppsyncIdentityCognito
impl Send for AppsyncIdentityCognito
impl Sync for AppsyncIdentityCognito
impl Unpin for AppsyncIdentityCognito
impl UnwindSafe for AppsyncIdentityCognito
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.