[][src]Struct tudor_sql::todo::Todo

pub struct Todo {
    pub is_completed: bool,
    pub priority: Option<char>,
    pub creation_date: Option<Date>,
    pub completion_date: Option<Date>,
    pub threshold_date: Option<Date>,
    pub due_date: Option<Date>,
    pub contexts: BTreeSet<String>,
    pub projects: BTreeSet<String>,
    pub is_hidden: bool,
    // some fields omitted


is_completed: boolpriority: Option<char>creation_date: Option<Date>completion_date: Option<Date>threshold_date: Option<Date>due_date: Option<Date>contexts: BTreeSet<String>projects: BTreeSet<String>is_hidden: bool


impl Todo[src]

pub fn has_context(&self, context: &str) -> bool[src]

pub fn has_project(&self, project: &str) -> bool[src]

pub fn canonical_context(&self) -> Option<String>[src]

pub fn canonical_project(&self) -> Option<String>[src]

pub fn parse(input: &str) -> Result<Todo, TodoParserError>[src]

Trait Implementations

impl Debug for Todo[src]

impl Display for Todo[src]

impl Eq for Todo[src]

impl PartialEq<Todo> for Todo[src]

impl StructuralEq for Todo[src]

impl StructuralPartialEq for Todo[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToString for T where
    T: Display + ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.