Struct task_hookrs::annotation::Annotation
source · pub struct Annotation { /* private fields */ }Expand description
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.
Implementations§
source§impl Annotation
impl Annotation
sourcepub fn new(entry: Date, description: String) -> Annotation
pub fn new(entry: Date, description: String) -> Annotation
Create a new Annotation object
sourcepub fn description(&self) -> &String
pub fn description(&self) -> &String
Get the description text
sourcepub fn description_mut(&mut self) -> &mut String
pub fn description_mut(&mut self) -> &mut String
Get the description text mutable
Trait Implementations§
source§impl Clone for Annotation
impl Clone for Annotation
source§fn clone(&self) -> Annotation
fn clone(&self) -> Annotation
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for Annotation
impl Debug for Annotation
source§impl<'de> Deserialize<'de> for Annotation
impl<'de> Deserialize<'de> for Annotation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<Annotation> for Annotation
impl PartialEq<Annotation> for Annotation
source§fn eq(&self, other: &Annotation) -> bool
fn eq(&self, other: &Annotation) -> bool
This method tests for
self and other values to be equal, and is used
by ==.