pub struct ReadingEvent {
pub device_id: String,
pub reading: StoredReading,
}Expand description
A reading event for WebSocket broadcast.
Fields§
§device_id: StringDevice ID.
reading: StoredReadingThe reading data.
Trait Implementations§
Source§impl Clone for ReadingEvent
impl Clone for ReadingEvent
Source§fn clone(&self) -> ReadingEvent
fn clone(&self) -> ReadingEvent
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 ReadingEvent
impl Debug for ReadingEvent
Auto Trait Implementations§
impl Freeze for ReadingEvent
impl RefUnwindSafe for ReadingEvent
impl Send for ReadingEvent
impl Sync for ReadingEvent
impl Unpin for ReadingEvent
impl UnwindSafe for ReadingEvent
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