pub struct MetricSample {
pub labels: Vec<(String, String)>,
pub value: f64,
}Expand description
One sample line of a text exposition.
Fields§
§labels: Vec<(String, String)>Label pairs in the order the line carries them.
value: f64The sample’s value.
Implementations§
Trait Implementations§
Source§impl Clone for MetricSample
impl Clone for MetricSample
Source§impl Debug for MetricSample
impl Debug for MetricSample
Source§impl PartialEq for MetricSample
impl PartialEq for MetricSample
impl StructuralPartialEq for MetricSample
Auto Trait Implementations§
impl Freeze for MetricSample
impl RefUnwindSafe for MetricSample
impl Send for MetricSample
impl Sync for MetricSample
impl Unpin for MetricSample
impl UnsafeUnpin for MetricSample
impl UnwindSafe for MetricSample
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