pub struct DeviceGroupStatsBuilder { /* private fields */ }
Expand description
Builder for DeviceGroupStats
.
Implementations§
Source§impl DeviceGroupStatsBuilder
impl DeviceGroupStatsBuilder
Sourcepub fn instance_stats(
&mut self,
value: HashMap<String, DeviceStats>,
) -> &mut Self
pub fn instance_stats( &mut self, value: HashMap<String, DeviceStats>, ) -> &mut Self
InstanceStats is a mapping of each device ID to its statistics.
pub fn vendor(&mut self, value: String) -> &mut Self
pub fn type(&mut self, value: String) -> &mut Self
pub fn name(&mut self, value: String) -> &mut Self
Sourcepub fn build(&self) -> Result<DeviceGroupStats, DeviceGroupStatsBuilderError>
pub fn build(&self) -> Result<DeviceGroupStats, DeviceGroupStatsBuilderError>
Trait Implementations§
Source§impl Clone for DeviceGroupStatsBuilder
impl Clone for DeviceGroupStatsBuilder
Source§fn clone(&self) -> DeviceGroupStatsBuilder
fn clone(&self) -> DeviceGroupStatsBuilder
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 DeviceGroupStatsBuilder
impl RefUnwindSafe for DeviceGroupStatsBuilder
impl Send for DeviceGroupStatsBuilder
impl Sync for DeviceGroupStatsBuilder
impl Unpin for DeviceGroupStatsBuilder
impl UnwindSafe for DeviceGroupStatsBuilder
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