pub struct CachedDevice {
pub id: String,
pub name: Option<String>,
pub device_type: Option<DeviceType>,
pub reading: Option<CurrentReading>,
pub last_sync: Option<OffsetDateTime>,
}Expand description
Cached device data loaded from the store.
Fields§
§id: StringDevice identifier.
name: Option<String>Device name.
device_type: Option<DeviceType>Device type.
reading: Option<CurrentReading>Latest reading, if available.
last_sync: Option<OffsetDateTime>When history was last synced.
Trait Implementations§
Source§impl Clone for CachedDevice
impl Clone for CachedDevice
Source§fn clone(&self) -> CachedDevice
fn clone(&self) -> CachedDevice
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 moreAuto Trait Implementations§
impl Freeze for CachedDevice
impl RefUnwindSafe for CachedDevice
impl Send for CachedDevice
impl Sync for CachedDevice
impl Unpin for CachedDevice
impl UnwindSafe for CachedDevice
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