pub struct StatValueBuilder { /* private fields */ }
Expand description
Builder for StatValue
.
Implementations§
Source§impl StatValueBuilder
impl StatValueBuilder
Sourcepub fn string_val(&mut self, value: Option<String>) -> &mut Self
pub fn string_val(&mut self, value: Option<String>) -> &mut Self
StringVal exposes a string value. These are likely annotations.
Sourcepub fn bool_val(&mut self, value: Option<bool>) -> &mut Self
pub fn bool_val(&mut self, value: Option<bool>) -> &mut Self
BoolVal exposes a boolean statistic.
Sourcepub fn unit(&mut self, value: Option<String>) -> &mut Self
pub fn unit(&mut self, value: Option<String>) -> &mut Self
Unit gives the unit type: °F, %, MHz, MB, etc.
Sourcepub fn desc(&mut self, value: Option<String>) -> &mut Self
pub fn desc(&mut self, value: Option<String>) -> &mut Self
Desc provides a human readable description of the statistic.
Sourcepub fn float_numerator_val(&mut self, value: Option<f64>) -> &mut Self
pub fn float_numerator_val(&mut self, value: Option<f64>) -> &mut Self
FloatNumeratorVal exposes a floating point value. If denominator is set it is assumed to be a fractional value, otherwise it is a scalar.
pub fn float_denominator_val(&mut self, value: Option<f64>) -> &mut Self
Sourcepub fn int_numerator_val(&mut self, value: Option<i64>) -> &mut Self
pub fn int_numerator_val(&mut self, value: Option<i64>) -> &mut Self
IntNumeratorVal exposes a int value. If denominator is set it is assumed to be a fractional value, otherwise it is a scalar.
pub fn int_denominator_val(&mut self, value: Option<i64>) -> &mut Self
Trait Implementations§
Source§impl Clone for StatValueBuilder
impl Clone for StatValueBuilder
Source§fn clone(&self) -> StatValueBuilder
fn clone(&self) -> StatValueBuilder
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 StatValueBuilder
impl RefUnwindSafe for StatValueBuilder
impl Send for StatValueBuilder
impl Sync for StatValueBuilder
impl Unpin for StatValueBuilder
impl UnwindSafe for StatValueBuilder
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