pub struct DeviceCollectionStats {
pub device_id: String,
pub alias: Option<String>,
pub poll_interval: u64,
pub last_poll_at: Option<OffsetDateTime>,
pub last_error_at: Option<OffsetDateTime>,
pub last_error: Option<String>,
pub success_count: u64,
pub failure_count: u64,
pub polling: bool,
}Expand description
Collection statistics for a single device.
Fields§
§device_id: StringDevice ID/address.
alias: Option<String>Device alias.
poll_interval: u64Poll interval in seconds.
last_poll_at: Option<OffsetDateTime>Time of last successful poll.
last_error_at: Option<OffsetDateTime>Time of last failed poll.
last_error: Option<String>Last error message.
success_count: u64Total successful polls.
failure_count: u64Total failed polls.
polling: boolWhether the device is currently being polled.
Trait Implementations§
Source§impl Clone for DeviceCollectionStats
impl Clone for DeviceCollectionStats
Source§fn clone(&self) -> DeviceCollectionStats
fn clone(&self) -> DeviceCollectionStats
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 DeviceCollectionStats
impl Debug for DeviceCollectionStats
Source§impl<'de> Deserialize<'de> for DeviceCollectionStats
impl<'de> Deserialize<'de> for DeviceCollectionStats
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 DeviceCollectionStats
impl RefUnwindSafe for DeviceCollectionStats
impl Send for DeviceCollectionStats
impl Sync for DeviceCollectionStats
impl Unpin for DeviceCollectionStats
impl UnwindSafe for DeviceCollectionStats
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