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
Create a new Annotation object
fn entry(&self) -> &Date
Get the entry date
fn description(&self) -> &String
Get the description text
Trait Implementations
impl Clone for Annotation
[src]
fn clone(&self) -> Annotation
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for Annotation
[src]
impl Serialize for Annotation
[src]
fn serialize<S>(&self, serializer: &mut S) -> RResult<(), S::Error> where S: Serializer
Serializes this value into this serializer.
impl Deserialize for Annotation
[src]
fn deserialize<D>(deserializer: &mut D) -> RResult<Annotation, D::Error> where D: Deserializer
Deserialize this value given this Deserializer
.