pub struct SampledValueBuilder { /* private fields */ }
Expand description
Builder for SampledValue
.
Implementations§
Source§impl SampledValueBuilder
impl SampledValueBuilder
pub fn name(&mut self, value: String) -> &mut Self
pub fn mean(&mut self, value: f64) -> &mut Self
pub fn stddev(&mut self, value: f64) -> &mut Self
pub fn display_labels(&mut self, value: HashMap<String, String>) -> &mut Self
Sourcepub fn build(&self) -> Result<SampledValue, SampledValueBuilderError>
pub fn build(&self) -> Result<SampledValue, SampledValueBuilderError>
Trait Implementations§
Source§impl Clone for SampledValueBuilder
impl Clone for SampledValueBuilder
Source§fn clone(&self) -> SampledValueBuilder
fn clone(&self) -> SampledValueBuilder
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 SampledValueBuilder
impl RefUnwindSafe for SampledValueBuilder
impl Send for SampledValueBuilder
impl Sync for SampledValueBuilder
impl Unpin for SampledValueBuilder
impl UnwindSafe for SampledValueBuilder
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