Files
mnote/rust/crates/core-domain/src/time.rs
T
2026-04-14 13:22:29 +08:00

13 lines
258 B
Rust

#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct Timestamp(pub String);
impl Timestamp {
pub fn new(value: impl Into<String>) -> Self {
Self(value.into())
}
pub fn as_str(&self) -> &str {
&self.0
}
}