Struct User

Source
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).

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 Clone for User

Source§

fn clone(&self) -> User

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for User

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for User

Source§

fn default() -> User

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for User

Source§

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 Serialize for User

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl RequestValue for User

Source§

impl Resource for User

Source§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Typeable for T
where T: Any,

Source§

fn get_type(&self) -> TypeId

Get the TypeId of this object.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,