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: String
recovery_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<'de> Deserialize<'de> for User
[src]
impl<'de> Deserialize<'de> for User
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[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
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> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[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]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
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]
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<V, T> VZip<V> for T where
V: MultiLane<T>,
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]
T: for<'de> Deserialize<'de>,