Struct Device

Source
pub struct Device {
Show 22 fields pub id: String, pub categories: Vec<String>, pub code: Option<String>, pub tombstone: u32, pub status: String, pub previous_status: Option<String>, pub version: u32, pub created_date: Option<String>, pub created_time: Option<String>, pub updated_date: Option<String>, pub updated_time: Option<String>, pub organization_id: String, pub created_by: Option<String>, pub updated_by: Option<String>, pub deleted_by: Option<String>, pub requested_by: Option<String>, pub timestamp: Option<String>, pub tags: Vec<String>, pub first_name: Option<String>, pub middle_name: Option<String>, pub last_name: Option<String>, pub date_of_birth: Option<String>,
}
Expand description

Represents a device associated with an account. Contains detailed information about the device, including identifiers, timestamps, and location data.

Fields§

§id: String§categories: Vec<String>§code: Option<String>§tombstone: u32§status: String§previous_status: Option<String>§version: u32§created_date: Option<String>§created_time: Option<String>§updated_date: Option<String>§updated_time: Option<String>§organization_id: String§created_by: Option<String>§updated_by: Option<String>§deleted_by: Option<String>§requested_by: Option<String>§timestamp: Option<String>§tags: Vec<String>§first_name: Option<String>§middle_name: Option<String>§last_name: Option<String>§date_of_birth: Option<String>

Trait Implementations§

Source§

impl Debug for Device

Source§

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

Formats the value using the given formatter. 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

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