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
sourceimpl 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
sourceimpl Clone for Annotation
impl Clone for Annotation
sourcefn clone(&self) -> Annotation
fn clone(&self) -> Annotation
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for Annotation
impl Debug for Annotation
sourceimpl<'de> Deserialize<'de> for Annotation
impl<'de> Deserialize<'de> for Annotation
sourcefn 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
sourceimpl PartialEq<Annotation> for Annotation
impl PartialEq<Annotation> for Annotation
sourcefn eq(&self, other: &Annotation) -> bool
fn eq(&self, other: &Annotation) -> bool
sourceimpl Serialize for Annotation
impl Serialize for Annotation
impl StructuralPartialEq for Annotation
Auto Trait Implementations
impl RefUnwindSafe for Annotation
impl Send for Annotation
impl Sync for Annotation
impl Unpin for Annotation
impl UnwindSafe for Annotation
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more