pub struct Device {
Show 36 fields pub api_level: Option<i32>, pub application_reports: Option<Vec<ApplicationReport>>, pub applied_password_policies: Option<Vec<PasswordRequirements>>, pub applied_policy_name: Option<String>, pub applied_policy_version: Option<i64>, pub applied_state: Option<String>, pub common_criteria_mode_info: Option<CommonCriteriaModeInfo>, pub device_settings: Option<DeviceSettings>, pub disabled_reason: Option<UserFacingMessage>, pub displays: Option<Vec<Display>>, pub dpc_migration_info: Option<DpcMigrationInfo>, pub enrollment_time: Option<DateTime<Utc>>, pub enrollment_token_data: Option<String>, pub enrollment_token_name: Option<String>, pub hardware_info: Option<HardwareInfo>, pub hardware_status_samples: Option<Vec<HardwareStatus>>, pub last_policy_compliance_report_time: Option<DateTime<Utc>>, pub last_policy_sync_time: Option<DateTime<Utc>>, pub last_status_report_time: Option<DateTime<Utc>>, pub management_mode: Option<String>, pub memory_events: Option<Vec<MemoryEvent>>, pub memory_info: Option<MemoryInfo>, pub name: Option<String>, pub network_info: Option<NetworkInfo>, pub non_compliance_details: Option<Vec<NonComplianceDetail>>, pub ownership: Option<String>, pub policy_compliant: Option<bool>, pub policy_name: Option<String>, pub power_management_events: Option<Vec<PowerManagementEvent>>, pub previous_device_names: Option<Vec<String>>, pub security_posture: Option<SecurityPosture>, pub software_info: Option<SoftwareInfo>, pub state: Option<String>, pub system_properties: Option<HashMap<String, String>>, pub user: Option<User>, pub user_name: Option<String>,
}
Expand description

A device owned by an enterprise. Unless otherwise noted, all fields are read-only and can’t be modified by enterprises.devices.patch.

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

§api_level: Option<i32>

The API level of the Android platform version running on the device.

§application_reports: Option<Vec<ApplicationReport>>

Reports for apps installed on the device. This information is only available when application_reports_enabled is true in the device’s policy.

§applied_password_policies: Option<Vec<PasswordRequirements>>

The password requirements currently applied to the device. The applied requirements may be slightly different from those specified in passwordPolicies in some cases. fieldPath is set based on passwordPolicies.

§applied_policy_name: Option<String>

The name of the policy currently applied to the device.

§applied_policy_version: Option<i64>

The version of the policy currently applied to the device.

§applied_state: Option<String>

The state currently applied to the device.

§common_criteria_mode_info: Option<CommonCriteriaModeInfo>

Information about Common Criteria Mode—security standards defined in the Common Criteria for Information Technology Security Evaluation (https://www.commoncriteriaportal.org/) (CC).This information is only available if statusReportingSettings.commonCriteriaModeEnabled is true in the device’s policy.

§device_settings: Option<DeviceSettings>

Device settings information. This information is only available if deviceSettingsEnabled is true in the device’s policy.

§disabled_reason: Option<UserFacingMessage>

If the device state is DISABLED, an optional message that is displayed on the device indicating the reason the device is disabled. This field can be modified by a patch request.

§displays: Option<Vec<Display>>

Detailed information about displays on the device. This information is only available if displayInfoEnabled is true in the device’s policy.

§dpc_migration_info: Option<DpcMigrationInfo>

Output only. Information related to whether this device was migrated from being managed by another Device Policy Controller (DPC).

§enrollment_time: Option<DateTime<Utc>>

The time of device enrollment.

§enrollment_token_data: Option<String>

If the device was enrolled with an enrollment token with additional data provided, this field contains that data.

§enrollment_token_name: Option<String>

If the device was enrolled with an enrollment token, this field contains the name of the token.

§hardware_info: Option<HardwareInfo>

Detailed information about the device hardware.

§hardware_status_samples: Option<Vec<HardwareStatus>>

Hardware status samples in chronological order. This information is only available if hardwareStatusEnabled is true in the device’s policy.

§last_policy_compliance_report_time: Option<DateTime<Utc>>

Deprecated.

§last_policy_sync_time: Option<DateTime<Utc>>

The last time the device fetched its policy.

§last_status_report_time: Option<DateTime<Utc>>

The last time the device sent a status report.

§management_mode: Option<String>

The type of management mode Android Device Policy takes on the device. This influences which policy settings are supported.

§memory_events: Option<Vec<MemoryEvent>>

Events related to memory and storage measurements in chronological order. This information is only available if memoryInfoEnabled is true in the device’s policy.Events are retained for a certain period of time and old events are deleted.

§memory_info: Option<MemoryInfo>

Memory information: contains information about device memory and storage.

§name: Option<String>

The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}.

§network_info: Option<NetworkInfo>

Device network information. This information is only available if networkInfoEnabled is true in the device’s policy.

§non_compliance_details: Option<Vec<NonComplianceDetail>>

Details about policy settings that the device is not compliant with.

§ownership: Option<String>

Ownership of the managed device.

§policy_compliant: Option<bool>

Whether the device is compliant with its policy.

§policy_name: Option<String>

The name of the policy applied to the device, in the form enterprises/{enterpriseId}/policies/{policyId}. If not specified, the policy_name for the device’s user is applied. This field can be modified by a patch request. You can specify only the policyId when calling enterprises.devices.patch, as long as the policyId doesn’t contain any slashes. The rest of the policy name is inferred.

§power_management_events: Option<Vec<PowerManagementEvent>>

Power management events on the device in chronological order. This information is only available if powerManagementEventsEnabled is true in the device’s policy.

§previous_device_names: Option<Vec<String>>

If the same physical device has been enrolled multiple times, this field contains its previous device names. The serial number is used as the unique identifier to determine if the same physical device has enrolled previously. The names are in chronological order.

§security_posture: Option<SecurityPosture>

Device’s security posture value that reflects how secure the device is.

§software_info: Option<SoftwareInfo>

Detailed information about the device software. This information is only available if softwareInfoEnabled is true in the device’s policy.

§state: Option<String>

The state to be applied to the device. This field can be modified by a patch request. Note that when calling enterprises.devices.patch, ACTIVE and DISABLED are the only allowable values. To enter the device into a DELETED state, call enterprises.devices.delete.

§system_properties: Option<HashMap<String, String>>

Map of selected system properties name and value related to the device. This information is only available if systemPropertiesEnabled is true in the device’s policy.

§user: Option<User>

The user who owns the device.

§user_name: Option<String>

The resource name of the user that owns this device in the form enterprises/{enterpriseId}/users/{userId}.

Trait Implementations§

source§

impl Clone for Device

source§

fn clone(&self) -> Device

Returns a copy 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 Device

source§

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

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

impl Default for Device

source§

fn default() -> Device

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

impl<'de> Deserialize<'de> for Device

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 Device

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 Device

source§

impl ResponseResult for Device

Auto Trait Implementations§

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> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

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

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

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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,

§

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

§

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

§

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> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

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