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<'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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for User
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> 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
Mutably borrows from an owned value. Read more