pub struct DeviceData {
pub id: String,
pub device_type: DeviceType,
pub created_at: DateTime<Utc>,
pub is_reachable: bool,
pub is_hidden: Option<bool>,
pub last_seen: DateTime<Utc>,
pub room: Option<Room>,
pub attributes: Attributes,
pub remote_links: Vec<String>,
pub capabilities: Capabilities,
}Expand description
Common data that is shared between all Devices.
Fields§
§id: String§device_type: DeviceType§created_at: DateTime<Utc>§is_reachable: bool§last_seen: DateTime<Utc>§room: Option<Room>§attributes: Attributes§remote_links: Vec<String>§capabilities: CapabilitiesTrait Implementations§
Source§impl Debug for DeviceData
impl Debug for DeviceData
Source§impl<'de> Deserialize<'de> for DeviceData
impl<'de> Deserialize<'de> for DeviceData
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
Source§impl PartialEq for DeviceData
impl PartialEq for DeviceData
Source§impl PartialOrd for DeviceData
impl PartialOrd for DeviceData
impl StructuralPartialEq for DeviceData
Auto Trait Implementations§
impl Freeze for DeviceData
impl RefUnwindSafe for DeviceData
impl Send for DeviceData
impl Sync for DeviceData
impl Unpin for DeviceData
impl UnwindSafe for DeviceData
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