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>,
}

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: bool

Boolean 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: String

CustomerId of User (read-only)

deletion_time: Option<DateTime<Utc>>

User’s G Suite account deletion time (read-only)

emails: Vec<UserEmail>etag: String

ETag 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: String

Hash function name for password. Supported are MD5, SHA-1 and crypt

id: String

Unique 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: bool

Boolean indicating if user is included in Global Address List

ip_whitelisted: bool

Boolean 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: String

Kind 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: UserName

User’s name

non_editable_aliases: Vec<String>

List of non editable aliases (read-only)

notes: Option<UserNotes>org_unit_path: String

OrgUnit of User

organizations: Vec<Organization>password: String

User’s password

phones: Vec<UserPhone>posix_accounts: Vec<UserPosixAccount>primary_email: Stringrecovery_email: String

Recovery email of the user

recovery_phone: String

Recovery phone of the user

relations: Vec<UserRelation>ssh_public_keys: Vec<UserSSHKey>suspended: bool

Indicates if user is suspended

suspension_reason: String

Suspension reason if user is suspended (read-only)

thumbnail_photo_etag: String

ETag of the user’s photo (read-only)

thumbnail_photo_url: String

Photo Url of the user (read-only)

websites: Vec<UserWebsite>

Trait Implementations

impl Clone for User[src]

fn clone(&self) -> User[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for User[src]

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

Formats the value using the given formatter. Read more

impl Default for User[src]

fn default() -> User[src]

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

impl<'de> Deserialize<'de> for User[src]

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
    __D: Deserializer<'de>, 
[src]

Deserialize this value from the given Serde deserializer. Read more

impl Serialize for User[src]

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

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

impl RefUnwindSafe for User

impl Send for User

impl Sync for User

impl Unpin for User

impl UnwindSafe for User

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T> Instrument for T[src]

fn instrument(self, span: Span) -> Instrumented<Self>[src]

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

fn in_current_span(self) -> Instrumented<Self>[src]

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

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

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

pub fn vzip(self) -> V

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