pub struct AppsyncIdentity {
pub sub: String,
pub username: String,
pub issuer: String,
pub auth_strategy: AppsyncAuthStrategy,
pub source_ip: Vec<String>,
pub groups: Vec<String>,
pub claims: Value,
}
Expand description
Identity information for an authenticated AppSync request.
Contains details about the authenticated user/client making the request, including their identity attributes from Cognito/IAM, source IP addresses, group memberships, and any additional claims.
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)
auth_strategy: AppsyncAuthStrategy
Default authorization strategy for the authenticated identity
source_ip: Vec<String>
Source IP addresses associated with the request
groups: Vec<String>
Groups the authenticated user belongs to
claims: Value
Additional claims/attributes associated with the identity
Trait Implementations§
Source§impl Debug for AppsyncIdentity
impl Debug for AppsyncIdentity
Source§impl<'de> Deserialize<'de> for AppsyncIdentity
impl<'de> Deserialize<'de> for AppsyncIdentity
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 AppsyncIdentity
impl RefUnwindSafe for AppsyncIdentity
impl Send for AppsyncIdentity
impl Sync for AppsyncIdentity
impl Unpin for AppsyncIdentity
impl UnwindSafe for AppsyncIdentity
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.