pub struct User {Show 46 fields
pub addresses: Option<String>,
pub posix_accounts: Option<String>,
pub phones: Option<String>,
pub locations: Option<String>,
pub is_delegated_admin: Option<bool>,
pub thumbnail_photo_etag: Option<String>,
pub suspended: Option<bool>,
pub keywords: Option<String>,
pub kind: Option<String>,
pub id: Option<String>,
pub aliases: Option<Vec<String>>,
pub non_editable_aliases: Option<Vec<String>>,
pub archived: Option<bool>,
pub deletion_time: Option<String>,
pub suspension_reason: Option<String>,
pub thumbnail_photo_url: Option<String>,
pub is_enrolled_in2_sv: Option<bool>,
pub include_in_global_address_list: Option<bool>,
pub relations: Option<String>,
pub languages: Option<String>,
pub is_admin: Option<bool>,
pub etag: Option<String>,
pub last_login_time: Option<String>,
pub customer_id: Option<String>,
pub org_unit_path: Option<String>,
pub agreed_to_terms: Option<bool>,
pub external_ids: Option<String>,
pub ip_whitelisted: Option<bool>,
pub ssh_public_keys: Option<String>,
pub custom_schemas: Option<HashMap<String, UserCustomProperties>>,
pub is_enforced_in2_sv: Option<bool>,
pub is_mailbox_setup: Option<bool>,
pub password: Option<String>,
pub emails: Option<String>,
pub organizations: Option<String>,
pub primary_email: Option<String>,
pub hash_function: Option<String>,
pub name: Option<UserName>,
pub gender: Option<String>,
pub notes: Option<String>,
pub creation_time: Option<String>,
pub websites: Option<String>,
pub change_password_at_next_login: Option<bool>,
pub ims: Option<String>,
pub recovery_email: Option<String>,
pub recovery_phone: Option<String>,
}Expand description
JSON template for User object in Directory API.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- photos patch users (none)
- aliases delete users (none)
- undelete users (none)
- photos get users (none)
- update users (request|response)
- aliases watch users (none)
- insert users (request|response)
- photos delete users (none)
- patch users (request|response)
- photos update users (none)
- watch users (none)
- get users (response)
- aliases insert users (none)
- make admin users (none)
- aliases list users (none)
- list users (none)
- delete users (none)
Fields§
§addresses: Option<String>no description provided
posix_accounts: Option<String>no description provided
phones: Option<String>no description provided
locations: Option<String>no description provided
is_delegated_admin: Option<bool>Boolean indicating if the user is delegated admin (Read-only)
thumbnail_photo_etag: Option<String>ETag of the user’s photo (Read-only)
suspended: Option<bool>Indicates if user is suspended.
keywords: Option<String>no description provided
kind: Option<String>Kind of resource this is.
id: Option<String>Unique identifier of User (Read-only)
aliases: Option<Vec<String>>List of aliases (Read-only)
non_editable_aliases: Option<Vec<String>>List of non editable aliases (Read-only)
archived: Option<bool>Indicates if user is archived.
deletion_time: Option<String>no description provided
suspension_reason: Option<String>Suspension reason if user is suspended (Read-only)
thumbnail_photo_url: Option<String>Photo Url of the user (Read-only)
is_enrolled_in2_sv: Option<bool>Is enrolled in 2-step verification (Read-only)
include_in_global_address_list: Option<bool>Boolean indicating if user is included in Global Address List
relations: Option<String>no description provided
languages: Option<String>no description provided
is_admin: Option<bool>Boolean indicating if the user is admin (Read-only)
etag: Option<String>ETag of the resource.
last_login_time: Option<String>User’s last login time. (Read-only)
customer_id: Option<String>CustomerId of User (Read-only)
org_unit_path: Option<String>OrgUnit of User
agreed_to_terms: Option<bool>Indicates if user has agreed to terms (Read-only)
external_ids: Option<String>no description provided
ip_whitelisted: Option<bool>Boolean indicating if ip is whitelisted
ssh_public_keys: Option<String>no description provided
custom_schemas: Option<HashMap<String, UserCustomProperties>>Custom fields of the user.
is_enforced_in2_sv: Option<bool>Is 2-step verification enforced (Read-only)
is_mailbox_setup: Option<bool>Is mailbox setup (Read-only)
password: Option<String>User’s password
emails: Option<String>no description provided
organizations: Option<String>no description provided
primary_email: Option<String>username of User
hash_function: Option<String>Hash function name for password. Supported are MD5, SHA-1 and crypt
name: Option<UserName>User’s name
gender: Option<String>no description provided
notes: Option<String>no description provided
creation_time: Option<String>User’s G Suite account creation time. (Read-only)
websites: Option<String>no description provided
change_password_at_next_login: Option<bool>Boolean indicating if the user should change password in next login
ims: Option<String>no description provided
recovery_email: Option<String>Recovery email of the user.
recovery_phone: Option<String>Recovery phone of the user. The phone number must be in the E.164 format, starting with the plus sign (+). Example: +16506661212.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for User
impl<'de> Deserialize<'de> for User
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>,
impl RequestValue for User
impl Resource for User
impl ResponseResult for User
Auto Trait Implementations§
impl Freeze for User
impl RefUnwindSafe for User
impl Send for User
impl Sync for User
impl Unpin for User
impl UnwindSafe for User
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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 more