Struct cognito_user_reader::UserType [−][src]
pub struct UserType { pub attributes: Option<Vec<AttributeType, Global>>, pub enabled: Option<bool>, pub mfa_options: Option<Vec<MFAOptionType, Global>>, pub user_create_date: Option<f64>, pub user_last_modified_date: Option<f64>, pub user_status: Option<String>, pub username: Option<String>, }
Expand description
The user type.
Fields
attributes: Option<Vec<AttributeType, Global>>
A container with information about the user type attributes.
enabled: Option<bool>
Specifies whether the user is enabled.
mfa_options: Option<Vec<MFAOptionType, Global>>
The MFA options for the user.
user_create_date: Option<f64>
The creation date of the user.
user_last_modified_date: Option<f64>
The last modified date of the user.
user_status: Option<String>
The user status. Can be one of the following:
-
UNCONFIRMED - User has been created but not confirmed.
-
CONFIRMED - User has been confirmed.
-
ARCHIVED - User is no longer active.
-
COMPROMISED - User is disabled due to a potential security threat.
-
UNKNOWN - User status is not known.
-
RESETREQUIRED - User is confirmed, but the user must request a code and reset his or her password before he or she can sign in.
-
FORCECHANGE_PASSWORD - The user is confirmed and the user can sign in using a temporary password, but on first sign-in, the user must change his or her password to a new value before doing anything else.
username: Option<String>
The user name of the user you wish to describe.
Trait Implementations
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<UserType, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<UserType, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for UserType
impl UnwindSafe for UserType
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self