pub struct DeviceStatsBuilder { /* private fields */ }
Expand description
Builder for DeviceStats
.
Implementations§
Source§impl DeviceStatsBuilder
impl DeviceStatsBuilder
Sourcepub fn stats(&mut self, value: Option<StatObject>) -> &mut Self
pub fn stats(&mut self, value: Option<StatObject>) -> &mut Self
Stats contains the verbose statistics for the device.
Sourcepub fn timestamp(&mut self, value: DateTime<Utc>) -> &mut Self
pub fn timestamp(&mut self, value: DateTime<Utc>) -> &mut Self
Timestamp is the time the statistics were collected.
Sourcepub fn summary(&mut self, value: Option<StatValue>) -> &mut Self
pub fn summary(&mut self, value: Option<StatValue>) -> &mut Self
Summary exposes a single summary metric that should be the most informative to users.
Sourcepub fn build(&self) -> Result<DeviceStats, DeviceStatsBuilderError>
pub fn build(&self) -> Result<DeviceStats, DeviceStatsBuilderError>
Trait Implementations§
Source§impl Clone for DeviceStatsBuilder
impl Clone for DeviceStatsBuilder
Source§fn clone(&self) -> DeviceStatsBuilder
fn clone(&self) -> DeviceStatsBuilder
Returns a copy 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 DeviceStatsBuilder
impl RefUnwindSafe for DeviceStatsBuilder
impl Send for DeviceStatsBuilder
impl Sync for DeviceStatsBuilder
impl Unpin for DeviceStatsBuilder
impl UnwindSafe for DeviceStatsBuilder
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