pub struct MetricMetadata {
pub help: Cow<'static, str>,
pub unit: Unit,
pub kind: MetricKind,
}Expand description
Per-metric metadata stored in the crate::Registry.
Fields§
§help: Cow<'static, str>Free-form help text rendered as # HELP in Prometheus exports and
description in OTLP exports.
unit: UnitUnit of the metric value.
kind: MetricKindDeclared metric kind (informational; exporters infer the actual shape from the metric type in the registry).
Implementations§
Trait Implementations§
Source§impl Clone for MetricMetadata
impl Clone for MetricMetadata
Source§fn clone(&self) -> MetricMetadata
fn clone(&self) -> MetricMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Hash for MetricMetadata
impl Hash for MetricMetadata
Source§impl PartialEq for MetricMetadata
impl PartialEq for MetricMetadata
Source§fn eq(&self, other: &MetricMetadata) -> bool
fn eq(&self, other: &MetricMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for MetricMetadata
impl StructuralPartialEq for MetricMetadata
Auto Trait Implementations§
impl Freeze for MetricMetadata
impl RefUnwindSafe for MetricMetadata
impl Send for MetricMetadata
impl Sync for MetricMetadata
impl Unpin for MetricMetadata
impl UnsafeUnpin 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