pub struct StoredDevice {
pub id: String,
pub name: Option<String>,
pub device_type: Option<DeviceType>,
pub serial: Option<String>,
pub firmware: Option<String>,
pub hardware: Option<String>,
pub first_seen: OffsetDateTime,
pub last_seen: OffsetDateTime,
}Expand description
A device stored in the database.
Fields§
§id: StringDevice identifier (address or UUID).
name: Option<String>Device name.
device_type: Option<DeviceType>Device type.
serial: Option<String>Serial number.
firmware: Option<String>Firmware version.
hardware: Option<String>Hardware version.
first_seen: OffsetDateTimeFirst time this device was seen.
last_seen: OffsetDateTimeLast time this device was seen.
Trait Implementations§
Source§impl Clone for StoredDevice
impl Clone for StoredDevice
Source§fn clone(&self) -> StoredDevice
fn clone(&self) -> StoredDevice
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StoredDevice
impl Debug for StoredDevice
Source§impl<'de> Deserialize<'de> for StoredDevice
impl<'de> Deserialize<'de> for StoredDevice
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
Auto Trait Implementations§
impl Freeze for StoredDevice
impl RefUnwindSafe for StoredDevice
impl Send for StoredDevice
impl Sync for StoredDevice
impl Unpin for StoredDevice
impl UnwindSafe for StoredDevice
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