nom_openmetrics/
label.rs

1/// A label for a metric
2#[derive(Debug, PartialEq)]
3pub struct Label<'a> {
4    pub name: &'a str,
5    pub value: String,
6}
7
8impl<'a> Label<'a> {
9    /// Create a `Label`
10    pub fn new(name: &'a str, value: String) -> Self {
11        Self { name, value }
12    }
13}