pub struct MetricValue<KV = HashMap<String, String>>{
pub metric: KV,
pub value: Option<(f64, MetricVal)>,
}Expand description
A single metric value from an instant query
Fields§
§metric: KVThe metric labels
value: Option<(f64, MetricVal)>The timestamp and value (if present)
Trait Implementations§
Source§impl<KV> Clone for MetricValue<KV>
impl<KV> Clone for MetricValue<KV>
Source§fn clone(&self) -> MetricValue<KV>
fn clone(&self) -> MetricValue<KV>
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<KV> Debug for MetricValue<KV>
impl<KV> Debug for MetricValue<KV>
Source§impl<'de, KV> Deserialize<'de> for MetricValue<KV>
impl<'de, KV> Deserialize<'de> for MetricValue<KV>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<KV> Freeze for MetricValue<KV>where
KV: Freeze,
impl<KV> RefUnwindSafe for MetricValue<KV>where
KV: RefUnwindSafe,
impl<KV> Send for MetricValue<KV>where
KV: Send,
impl<KV> Sync for MetricValue<KV>where
KV: Sync,
impl<KV> Unpin for MetricValue<KV>where
KV: Unpin,
impl<KV> UnwindSafe for MetricValue<KV>where
KV: UnwindSafe,
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)