Struct prometheus_client::registry::Descriptor
source · pub struct Descriptor { /* private fields */ }Expand description
OpenMetrics metric descriptor.
Implementations§
source§impl Descriptor
impl Descriptor
sourcepub fn name(&self) -> &str
pub fn name(&self) -> &str
Returns the name of the OpenMetrics metric Descriptor.
sourcepub fn help(&self) -> &str
pub fn help(&self) -> &str
Returns the help text of the OpenMetrics metric Descriptor.
sourcepub fn unit(&self) -> &Option<Unit>
pub fn unit(&self) -> &Option<Unit>
Returns the unit of the OpenMetrics metric Descriptor.