Enum tdtxt::DateCompound [−][src]
pub enum DateCompound {
Completed {
created: Date,
completed: Date,
},
Created {
created: Date,
},
}
Expand description
Represents the attached dates a Task
can have.
The dates must be given in the format yyyy-mm-dd
.
Variants
Two dates, a completion date and a creation date.
A single date on which the task was created.
Fields of Created
created: Date
Creation date.
Implementations
Creates a new date compound for a single created date
(DateCompound::Created
).
Creates a new date compound for a created and completion date
(DateCompound::Completed
).
Returns the creation date.
Returns the optional completion date.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for DateCompound
impl Send for DateCompound
impl Sync for DateCompound
impl Unpin for DateCompound
impl UnwindSafe for DateCompound
Blanket Implementations
Mutably borrows from an owned value. Read more