#[non_exhaustive]pub struct AppSyncCognitoIdentity<T1 = Value>where
T1: DeserializeOwned + Serialize,{
pub sub: Option<String>,
pub issuer: Option<String>,
pub username: Option<String>,
pub claims: HashMap<String, T1>,
pub source_ip: Vec<String>,
pub default_auth_strategy: Option<String>,
pub other: Map<String, Value>,
}Available on crate feature
appsync only.Expand description
AppSyncCognitoIdentity contains information about the caller authed via Cognito.
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.sub: Option<String>§issuer: Option<String>§username: Option<String>§claims: HashMap<String, T1>§source_ip: Vec<String>§default_auth_strategy: Option<String>§other: Map<String, Value>Available on crate feature
catch-all-fields only.Catchall to catch any additional fields that were present but not explicitly defined by this struct.
Enabled with Cargo feature catch-all-fields.
If catch-all-fields is disabled, any additional fields that are present will be ignored.
Implementations§
Source§impl<T1> AppSyncCognitoIdentity<T1>where
T1: DeserializeOwned + Serialize,
impl<T1> AppSyncCognitoIdentity<T1>where
T1: DeserializeOwned + Serialize,
Sourcepub fn builder() -> AppSyncCognitoIdentityBuilder<T1>
pub fn builder() -> AppSyncCognitoIdentityBuilder<T1>
Create an instance of AppSyncCognitoIdentity using the builder syntax
Trait Implementations§
Source§impl<T1> Clone for AppSyncCognitoIdentity<T1>
impl<T1> Clone for AppSyncCognitoIdentity<T1>
Source§fn clone(&self) -> AppSyncCognitoIdentity<T1>
fn clone(&self) -> AppSyncCognitoIdentity<T1>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T1> Debug for AppSyncCognitoIdentity<T1>
impl<T1> Debug for AppSyncCognitoIdentity<T1>
Source§impl<T1> Default for AppSyncCognitoIdentity<T1>
impl<T1> Default for AppSyncCognitoIdentity<T1>
Source§fn default() -> AppSyncCognitoIdentity<T1>
fn default() -> AppSyncCognitoIdentity<T1>
Returns the “default value” for a type. Read more
Source§impl<'de, T1> Deserialize<'de> for AppSyncCognitoIdentity<T1>
impl<'de, T1> Deserialize<'de> for AppSyncCognitoIdentity<T1>
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
Source§impl<T1> PartialEq for AppSyncCognitoIdentity<T1>
impl<T1> PartialEq for AppSyncCognitoIdentity<T1>
Source§fn eq(&self, other: &AppSyncCognitoIdentity<T1>) -> bool
fn eq(&self, other: &AppSyncCognitoIdentity<T1>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<T1> Serialize for AppSyncCognitoIdentity<T1>where
T1: DeserializeOwned + Serialize,
impl<T1> Serialize for AppSyncCognitoIdentity<T1>where
T1: DeserializeOwned + Serialize,
impl<T1> Eq for AppSyncCognitoIdentity<T1>
impl<T1> StructuralPartialEq for AppSyncCognitoIdentity<T1>where
T1: DeserializeOwned + Serialize,
Auto Trait Implementations§
impl<T1> Freeze for AppSyncCognitoIdentity<T1>
impl<T1> RefUnwindSafe for AppSyncCognitoIdentity<T1>where
T1: RefUnwindSafe,
impl<T1> Send for AppSyncCognitoIdentity<T1>where
T1: Send,
impl<T1> Sync for AppSyncCognitoIdentity<T1>where
T1: Sync,
impl<T1> Unpin for AppSyncCognitoIdentity<T1>where
T1: Unpin,
impl<T1> UnsafeUnpin for AppSyncCognitoIdentity<T1>
impl<T1> UnwindSafe for AppSyncCognitoIdentity<T1>where
T1: UnwindSafe,
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