pub struct DeviceIdentifier {
pub chrome_os_attested_device_id: Option<String>,
pub device_type: Option<String>,
pub imei: Option<String>,
pub manufacturer: Option<String>,
pub meid: Option<String>,
pub model: Option<String>,
pub serial_number: Option<String>,
}
Expand description
Encapsulates hardware and product IDs to identify a manufactured device. To understand requirements on identifier sets, read Identifiers.
This type is not used in any activity, and only used as part of another schema.
Fields§
§chrome_os_attested_device_id: Option<String>
An identifier provided by OEMs, carried through the production and sales process. Only applicable to Chrome OS devices.
device_type: Option<String>
The type of the device
imei: Option<String>
The device’s IMEI number. Validated on input.
manufacturer: Option<String>
The device manufacturer’s name. Matches the device’s built-in value returned from android.os.Build.MANUFACTURER
. Allowed values are listed in Android manufacturers.
meid: Option<String>
The device’s MEID number.
model: Option<String>
The device model’s name. Allowed values are listed in Android models and Chrome OS models.
serial_number: Option<String>
The manufacturer’s serial number for the device. This value might not be unique across different device models.
Trait Implementations§
Source§impl Clone for DeviceIdentifier
impl Clone for DeviceIdentifier
Source§fn clone(&self) -> DeviceIdentifier
fn clone(&self) -> DeviceIdentifier
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for DeviceIdentifier
impl Debug for DeviceIdentifier
Source§impl Default for DeviceIdentifier
impl Default for DeviceIdentifier
Source§fn default() -> DeviceIdentifier
fn default() -> DeviceIdentifier
Source§impl<'de> Deserialize<'de> for DeviceIdentifier
impl<'de> Deserialize<'de> for DeviceIdentifier
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>,
Source§impl Serialize for DeviceIdentifier
impl Serialize for DeviceIdentifier
impl Part for DeviceIdentifier
Auto Trait Implementations§
impl Freeze for DeviceIdentifier
impl RefUnwindSafe for DeviceIdentifier
impl Send for DeviceIdentifier
impl Sync for DeviceIdentifier
impl Unpin for DeviceIdentifier
impl UnwindSafe for DeviceIdentifier
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