Struct task_hookrs::annotation::Annotation
[−]
[src]
pub struct Annotation { /* fields omitted */ }
Annotation type for task annotations. Each annotation in taskwarrior consists of a date and a description, the date is named "entry", the description "description" in the JSON export.
Methods
impl Annotation
[src]
fn new(entry: Date, description: String) -> Annotation
[src]
Create a new Annotation object
fn entry(&self) -> &Date
[src]
Get the entry date
fn entry_mut(&mut self) -> &mut Date
[src]
Get the entry date mutable
fn description(&self) -> &String
[src]
Get the description text
fn description_mut(&mut self) -> &mut String
[src]
Get the description text mutable
Trait Implementations
impl Clone for Annotation
[src]
fn clone(&self) -> Annotation
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more