Struct User

Source
pub struct User {
Show 95 fields pub account_enabled: bool, pub age_group: String, pub assigned_licenses: Vec<AssignedLicense>, pub assigned_plans: Vec<AssignedPlan>, pub business_phones: Vec<String>, pub city: String, pub company_name: String, pub consent_provided_for_minor: String, pub country: String, pub department: String, pub display_name: String, pub employee_id: String, pub fax_number: String, pub given_name: String, pub im_addresses: Vec<String>, pub is_resource_account: bool, pub job_title: String, pub legal_age_group_classification: String, pub license_assignment_states: Vec<LicenseAssignmentState>, pub mail: String, pub mail_nickname: String, pub mobile_phone: String, pub on_premises_distinguished_name: String, pub on_premises_extension_attributes: OnPremisesExtensionAttributes, pub on_premises_immutable_id: String, pub on_premises_last_sync_date_time: String, pub on_premises_provisioning_errors: Vec<OnPremisesProvisioningError>, pub on_premises_security_identifier: String, pub on_premises_sync_enabled: bool, pub on_premises_domain_name: String, pub on_premises_sam_account_name: String, pub on_premises_user_principal_name: String, pub other_mails: Vec<String>, pub password_policies: String, pub password_profile: PasswordProfile, pub office_location: String, pub postal_code: String, pub preferred_language: String, pub provisioned_plans: Vec<ProvisionedPlan>, pub proxy_addresses: Vec<String>, pub show_in_address_list: bool, pub sign_in_sessions_valid_from_date_time: String, pub state: String, pub street_address: String, pub surname: String, pub usage_location: String, pub user_principal_name: String, pub user_type: String, pub mailbox_settings: MailboxSettings, pub about_me: String, pub birthday: String, pub hire_date: String, pub interests: Vec<String>, pub my_site: String, pub past_projects: Vec<String>, pub preferred_name: String, pub responsibilities: Vec<String>, pub schools: Vec<String>, pub skills: Vec<String>, pub device_enrollment_limit: i32, pub owned_devices: Vec<DirectoryObject>, pub registered_devices: Vec<DirectoryObject>, pub manager: DirectoryObject, pub direct_reports: Vec<DirectoryObject>, pub member_of: Vec<DirectoryObject>, pub created_objects: Vec<DirectoryObject>, pub owned_objects: Vec<DirectoryObject>, pub license_details: Vec<LicenseDetails>, pub transitive_member_of: Vec<DirectoryObject>, pub extensions: Vec<Extension>, pub outlook: OutlookUser, pub messages: Vec<Message>, pub mail_folders: Vec<MailFolder>, pub calendar: Calendar, pub calendars: Vec<Calendar>, pub calendar_groups: Vec<CalendarGroup>, pub calendar_view: Vec<Event>, pub events: Vec<Event>, pub people: Vec<Person>, pub contacts: Vec<Contact>, pub contact_folders: Vec<ContactFolder>, pub inference_classification: InferenceClassification, pub photo: ProfilePhoto, pub photos: Vec<ProfilePhoto>, pub drive: Drive, pub drives: Vec<Drive>, pub planner: PlannerUser, pub onenote: Onenote, pub managed_devices: Vec<ManagedDevice>, pub managed_app_registrations: Vec<ManagedAppRegistration>, pub device_management_troubleshooting_events: Vec<DeviceManagementTroubleshootingEvent>, pub activities: Vec<UserActivity>, pub insights: OfficeGraphInsights, pub settings: UserSettings, pub joined_teams: Vec<Group>,
}

Fields§

§account_enabled: bool§age_group: String§assigned_licenses: Vec<AssignedLicense>§assigned_plans: Vec<AssignedPlan>§business_phones: Vec<String>§city: String§company_name: String§consent_provided_for_minor: String§country: String§department: String§display_name: String§employee_id: String§fax_number: String§given_name: String§im_addresses: Vec<String>§is_resource_account: bool§job_title: String§legal_age_group_classification: String§license_assignment_states: Vec<LicenseAssignmentState>§mail: String§mail_nickname: String§mobile_phone: String§on_premises_distinguished_name: String§on_premises_extension_attributes: OnPremisesExtensionAttributes§on_premises_immutable_id: String§on_premises_last_sync_date_time: String§on_premises_provisioning_errors: Vec<OnPremisesProvisioningError>§on_premises_security_identifier: String§on_premises_sync_enabled: bool§on_premises_domain_name: String§on_premises_sam_account_name: String§on_premises_user_principal_name: String§other_mails: Vec<String>§password_policies: String§password_profile: PasswordProfile§office_location: String§postal_code: String§preferred_language: String§provisioned_plans: Vec<ProvisionedPlan>§proxy_addresses: Vec<String>§show_in_address_list: bool§sign_in_sessions_valid_from_date_time: String§state: String§street_address: String§surname: String§usage_location: String§user_principal_name: String§user_type: String§mailbox_settings: MailboxSettings§about_me: String§birthday: String§hire_date: String§interests: Vec<String>§my_site: String§past_projects: Vec<String>§preferred_name: String§responsibilities: Vec<String>§schools: Vec<String>§skills: Vec<String>§device_enrollment_limit: i32§owned_devices: Vec<DirectoryObject>§registered_devices: Vec<DirectoryObject>§manager: DirectoryObject§direct_reports: Vec<DirectoryObject>§member_of: Vec<DirectoryObject>§created_objects: Vec<DirectoryObject>§owned_objects: Vec<DirectoryObject>§license_details: Vec<LicenseDetails>§transitive_member_of: Vec<DirectoryObject>§extensions: Vec<Extension>§outlook: OutlookUser§messages: Vec<Message>§mail_folders: Vec<MailFolder>§calendar: Calendar§calendars: Vec<Calendar>§calendar_groups: Vec<CalendarGroup>§calendar_view: Vec<Event>§events: Vec<Event>§people: Vec<Person>§contacts: Vec<Contact>§contact_folders: Vec<ContactFolder>§inference_classification: InferenceClassification§photo: ProfilePhoto§photos: Vec<ProfilePhoto>§drive: Drive§drives: Vec<Drive>§planner: PlannerUser§onenote: Onenote§managed_devices: Vec<ManagedDevice>§managed_app_registrations: Vec<ManagedAppRegistration>§device_management_troubleshooting_events: Vec<DeviceManagementTroubleshootingEvent>§activities: Vec<UserActivity>§insights: OfficeGraphInsights§settings: UserSettings§joined_teams: Vec<Group>

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<'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 PartialEq for User

Source§

fn eq(&self, other: &User) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
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 Eq for User

Source§

impl StructuralPartialEq 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> 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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,