Struct prometheus_http_query::response::MetricMetadata
source · pub struct MetricMetadata { /* private fields */ }
Expand description
A metric metadata object.
Implementations§
source§impl MetricMetadata
impl MetricMetadata
sourcepub fn metric_type(&self) -> MetricType
pub fn metric_type(&self) -> MetricType
Get the metric type.
Trait Implementations§
source§impl Clone for MetricMetadata
impl Clone for MetricMetadata
source§fn clone(&self) -> MetricMetadata
fn clone(&self) -> MetricMetadata
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 moresource§impl Debug for MetricMetadata
impl Debug for MetricMetadata
source§impl<'de> Deserialize<'de> for MetricMetadata
impl<'de> Deserialize<'de> for MetricMetadata
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 RefUnwindSafe for MetricMetadata
impl Send for MetricMetadata
impl Sync for MetricMetadata
impl Unpin for MetricMetadata
impl UnwindSafe for MetricMetadata
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