Struct gsuite_api::User [−][src]
pub struct User {Show fields
pub addresses: Vec<UserAddress>,
pub agreed_to_terms: Option<bool>,
pub aliases: Vec<String>,
pub archived: Option<bool>,
pub change_password_at_next_login: bool,
pub creation_time: Option<DateTime<Utc>>,
pub custom_schemas: HashMap<String, UserCustomProperties>,
pub customer_id: String,
pub deletion_time: Option<DateTime<Utc>>,
pub emails: Vec<UserEmail>,
pub etag: String,
pub external_ids: Vec<UserExternalId>,
pub gender: Option<UserGender>,
pub hash_function: String,
pub id: String,
pub ims: Vec<UserInstantMessenger>,
pub include_in_global_address_list: bool,
pub ip_whitelisted: bool,
pub is_admin: Option<bool>,
pub is_delegated_admin: Option<bool>,
pub is_enforced_in2_sv: Option<bool>,
pub is_enrolled_in2_sv: Option<bool>,
pub is_mailbox_setup: Option<bool>,
pub keywords: Vec<UserKeyword>,
pub kind: String,
pub languages: Vec<UserLanguage>,
pub last_login_time: Option<DateTime<Utc>>,
pub locations: Vec<UserLocation>,
pub name: UserName,
pub non_editable_aliases: Vec<String>,
pub notes: Option<UserNotes>,
pub org_unit_path: String,
pub organizations: Vec<Organization>,
pub password: String,
pub phones: Vec<UserPhone>,
pub posix_accounts: Vec<UserPosixAccount>,
pub primary_email: String,
pub recovery_email: String,
pub recovery_phone: String,
pub relations: Vec<UserRelation>,
pub ssh_public_keys: Vec<UserSSHKey>,
pub suspended: bool,
pub suspension_reason: String,
pub thumbnail_photo_etag: String,
pub thumbnail_photo_url: String,
pub websites: Vec<UserWebsite>,
}Expand description
A user. FROM: https://developers.google.com/admin-sdk/directory/v1/reference/users#resource
Fields
addresses: Vec<UserAddress>agreed_to_terms: Option<bool>Indicates if user has agreed to terms (read-only)
aliases: Vec<String>List of aliases (read-only)
archived: Option<bool>Indicates if user is archived (read-only)
change_password_at_next_login: boolBoolean indicating if the user should change password in next login
creation_time: Option<DateTime<Utc>>User’s G Suite account creation time (read-only)
custom_schemas: HashMap<String, UserCustomProperties>Custom fields of the user
customer_id: StringCustomerId of User (read-only)
deletion_time: Option<DateTime<Utc>>User’s G Suite account deletion time (read-only)
emails: Vec<UserEmail>etag: StringETag of the resource (read-only)
external_ids: Vec<UserExternalId>A list of external IDs for the user, such as an employee or network ID. The maximum allowed data size for this field is 2Kb.
gender: Option<UserGender>hash_function: StringHash function name for password. Supported are MD5, SHA-1 and crypt
id: StringUnique identifier of User (read-only)
ims: Vec<UserInstantMessenger>The user’s Instant Messenger (IM) accounts. A user account can have multiple ims properties. But, only one of these ims properties can be the primary IM contact. The maximum allowed data size for this field is 2Kb.
include_in_global_address_list: boolBoolean indicating if user is included in Global Address List
ip_whitelisted: boolBoolean indicating if ip is whitelisted
is_admin: Option<bool>Boolean indicating if the user is admin (read-only)
is_delegated_admin: Option<bool>Boolean indicating if the user is delegated admin (read-only)
is_enforced_in2_sv: Option<bool>Is 2-step verification enforced (read-only)
is_enrolled_in2_sv: Option<bool>Is enrolled in 2-step verification (read-only)
is_mailbox_setup: Option<bool>Is mailbox setup (read-only)
keywords: Vec<UserKeyword>The user’s keywords. The maximum allowed data size for this field is 1Kb.
kind: StringKind of resource this is (read-only)
languages: Vec<UserLanguage>last_login_time: Option<DateTime<Utc>>User’s last login time (read-only)
locations: Vec<UserLocation>name: UserNameUser’s name
non_editable_aliases: Vec<String>List of non editable aliases (read-only)
notes: Option<UserNotes>org_unit_path: StringOrgUnit of User
organizations: Vec<Organization>password: StringUser’s password
phones: Vec<UserPhone>posix_accounts: Vec<UserPosixAccount>primary_email: Stringrecovery_email: StringRecovery email of the user
recovery_phone: StringRecovery phone of the user
relations: Vec<UserRelation>ssh_public_keys: Vec<UserSSHKey>suspended: boolIndicates if user is suspended
suspension_reason: StringSuspension reason if user is suspended (read-only)
thumbnail_photo_etag: StringETag of the user’s photo (read-only)
thumbnail_photo_url: StringPhoto Url of the user (read-only)
websites: Vec<UserWebsite>Trait Implementations
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 RefUnwindSafe for Userimpl UnwindSafe for UserBlanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
pub fn vzip(self) -> V