Enum notedown_rt::document::DocumentTime
source · [−]pub enum DocumentTime {
RuntimeToday,
FileChanged,
FileCreated,
GitChanged,
GitCreated,
DateTime(NaiveDateTime),
}Variants
RuntimeToday
\date: runtime-today
FileChanged
\date: file-changed
FileCreated
\date: file-created
GitChanged
\date: git-changed
GitCreated
\date: git-created
DateTime(NaiveDateTime)
UTC time in any cases
Implementations
sourceimpl DocumentTime
impl DocumentTime
pub fn parse_unix(date: i64) -> Self
pub fn parse_fmt(date: &str, fmt: &str) -> Result<Self>
pub fn now() -> DocumentTime
pub fn instantiate(&self, file: &Url) -> Option<NaiveDateTime>
Trait Implementations
sourceimpl Clone for DocumentTime
impl Clone for DocumentTime
sourcefn clone(&self) -> DocumentTime
fn clone(&self) -> DocumentTime
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for DocumentTime
impl Debug for DocumentTime
Auto Trait Implementations
impl RefUnwindSafe for DocumentTime
impl Send for DocumentTime
impl Sync for DocumentTime
impl Unpin for DocumentTime
impl UnwindSafe for DocumentTime
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more