use std::fmt;
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub struct Status(String);
impl Status {
pub fn new(value: impl Into<String>) -> Self {
Self(value.into().trim().to_string())
}
#[must_use]
pub fn as_str(&self) -> &str {
&self.0
}
}
impl fmt::Display for Status {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.write_str(&self.0)
}
}