pub struct MetricDoc {
pub name: &'static str,
pub kind: MetricKind,
pub labels: &'static [&'static str],
pub help: &'static str,
}Expand description
One metric: the name it is registered under, its type, labels and help text.
Fields§
§name: &'static strThe name as registered (without the registry’s prefix or the type’s suffix).
kind: MetricKindIts type.
labels: &'static [&'static str]Its label names.
help: &'static strWhat it measures.
Implementations§
Trait Implementations§
impl Copy for MetricDoc
impl Eq for MetricDoc
impl StructuralPartialEq for MetricDoc
Auto Trait Implementations§
impl Freeze for MetricDoc
impl RefUnwindSafe for MetricDoc
impl Send for MetricDoc
impl Sync for MetricDoc
impl Unpin for MetricDoc
impl UnsafeUnpin for MetricDoc
impl UnwindSafe for MetricDoc
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