Skip to main content

made_core/value_objects/
metric_help.rs

1/// Human-readable Prometheus family help text.
2#[derive(Clone, Debug, PartialEq, Eq)]
3pub struct MetricHelp(String);
4
5impl MetricHelp {
6    #[must_use]
7    pub fn new(value: impl Into<String>) -> Self {
8        Self(value.into())
9    }
10
11    #[must_use]
12    pub fn as_str(&self) -> &str {
13        &self.0
14    }
15}