Struct aws_sdk_appstream::types::User
source · #[non_exhaustive]pub struct User {
pub arn: Option<String>,
pub user_name: Option<String>,
pub enabled: Option<bool>,
pub status: Option<String>,
pub first_name: Option<String>,
pub last_name: Option<String>,
pub created_time: Option<DateTime>,
pub authentication_type: Option<AuthenticationType>,
}
Expand description
Describes a user in the user pool.
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.arn: Option<String>
The ARN of the user.
user_name: Option<String>
The email address of the user.
Users' email addresses are case-sensitive.
enabled: Option<bool>
Specifies whether the user in the user pool is enabled.
status: Option<String>
The status of the user in the user pool. The status can be one of the following:
-
UNCONFIRMED – The user is created but not confirmed.
-
CONFIRMED – The user is confirmed.
-
ARCHIVED – The user is no longer active.
-
COMPROMISED – The user is disabled because of a potential security threat.
-
UNKNOWN – The user status is not known.
first_name: Option<String>
The first name, or given name, of the user.
last_name: Option<String>
The last name, or surname, of the user.
created_time: Option<DateTime>
The date and time the user was created in the user pool.
authentication_type: Option<AuthenticationType>
The authentication type for the user.
Implementations§
source§impl User
impl User
sourcepub fn user_name(&self) -> Option<&str>
pub fn user_name(&self) -> Option<&str>
The email address of the user.
Users' email addresses are case-sensitive.
sourcepub fn status(&self) -> Option<&str>
pub fn status(&self) -> Option<&str>
The status of the user in the user pool. The status can be one of the following:
-
UNCONFIRMED – The user is created but not confirmed.
-
CONFIRMED – The user is confirmed.
-
ARCHIVED – The user is no longer active.
-
COMPROMISED – The user is disabled because of a potential security threat.
-
UNKNOWN – The user status is not known.
sourcepub fn first_name(&self) -> Option<&str>
pub fn first_name(&self) -> Option<&str>
The first name, or given name, of the user.
sourcepub fn created_time(&self) -> Option<&DateTime>
pub fn created_time(&self) -> Option<&DateTime>
The date and time the user was created in the user pool.
sourcepub fn authentication_type(&self) -> Option<&AuthenticationType>
pub fn authentication_type(&self) -> Option<&AuthenticationType>
The authentication type for the user.