pub struct Device {
pub claims: Option<Vec<DeviceClaim>>,
pub configuration: Option<String>,
pub device_id: Option<i64>,
pub device_identifier: Option<DeviceIdentifier>,
pub device_metadata: Option<DeviceMetadata>,
pub name: Option<String>,
}
Expand description
An Android or Chrome OS device registered for zero-touch enrollment.
§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).
- devices get customers (response)
- devices get partners (response)
Fields§
§claims: Option<Vec<DeviceClaim>>
Output only. The provisioning claims for a device. Devices claimed for zero-touch enrollment have a claim with the type SECTION_TYPE_ZERO_TOUCH
. Call partners.devices.unclaim
or partners.devices.unclaimAsync
to remove the device from zero-touch enrollment.
configuration: Option<String>
Not available to resellers.
device_id: Option<i64>
Output only. The ID of the device. Assigned by the server.
device_identifier: Option<DeviceIdentifier>
The hardware IDs that identify a manufactured device. To learn more, read Identifiers.
device_metadata: Option<DeviceMetadata>
The metadata attached to the device. Structured as key-value pairs. To learn more, read Device metadata.
name: Option<String>
Output only. The API resource name in the format partners/[PARTNER_ID]/devices/[DEVICE_ID]
. Assigned by the server.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Device
impl<'de> Deserialize<'de> for Device
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>,
impl ResponseResult for Device
Auto Trait Implementations§
impl Freeze for Device
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnwindSafe for Device
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more