made-core 0.7.7

Domain core of MADE: entities, value objects, events, ports. No IO.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/// One complete Prometheus text exposition snapshot.
#[derive(Clone, Debug, Default, PartialEq, Eq)]
pub struct PrometheusText(String);

impl PrometheusText {
    #[must_use]
    pub fn new(value: impl Into<String>) -> Self {
        Self(value.into())
    }

    #[must_use]
    pub fn as_str(&self) -> &str {
        &self.0
    }
}