Struct commonplace::ZettelId [−][src]
#[repr(transparent)]pub struct ZettelId(pub u64);
Expand description
Each Zettel is associated with a unique ID, which is based on a timestamp of when the Zettel was created,
turned into a single number, but retaining most of its human-readability. For example, a Zettel created when
this comment was written would have the form (with dashes inserted for readability) 12021-07-04-23-32-24
. This
allows a Zettel to be created every second, which I think will be okay for real-world purposes.
The time in the timestamp is UTC+0, and the date uses the Holocene calendar.
Implementations
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for ZettelId
impl UnwindSafe for ZettelId
Blanket Implementations
Mutably borrows from an owned value. Read more