pub struct ParsedTimestamp {
pub date: NaiveDate,
pub repeater: Option<Repeater>,
pub warning_days: Option<i64>,
pub active: bool,
}Expand description
Result of parsing a single org-mode timestamp string.
Fields§
§date: NaiveDateThe base date encoded in the timestamp (start date for ranges).
repeater: Option<Repeater>Optional repeater (+1d, .+2w, …).
warning_days: Option<i64>Optional per-task warning lead time (-Nd, -Nw, -Nm, -Ny,
-Nh) converted to whole days using upstream Org-mode’s factors
(see org-get-wdays in lisp/org.el). When set, it overrides the
global DEADLINE_WARNING_DAYS for the corresponding DEADLINE.
active: boolBracket form: true for active <...>, false for inactive
[...]. See ADR-0014 for which keywords accept which forms and
for the agenda invariant (inactive timestamps never feed agenda).
Trait Implementations§
Source§impl Clone for ParsedTimestamp
impl Clone for ParsedTimestamp
Source§fn clone(&self) -> ParsedTimestamp
fn clone(&self) -> ParsedTimestamp
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ParsedTimestamp
impl RefUnwindSafe for ParsedTimestamp
impl Send for ParsedTimestamp
impl Sync for ParsedTimestamp
impl Unpin for ParsedTimestamp
impl UnsafeUnpin for ParsedTimestamp
impl UnwindSafe for ParsedTimestamp
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more