Files
mnote/rust/crates/core-domain/src/time.rs
T

13 lines
258 B
Rust
Raw Normal View History

2026-04-14 13:22:29 +08:00
#[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
}
}