Struct todotxt::Task [] [src]

pub struct Task {
    pub line: String,
    pub subject: String,
    pub priority: u8,
    pub create_date: Option<Date>,
    pub finish_date: Option<Date>,
    pub finished: bool,
    pub threshold_date: Option<Date>,
    pub due_date: Option<Date>,
    pub recurrence: Option<Recurrence>,
    pub contexts: Vec<String>,
    pub projects: Vec<String>,
    pub hashtags: Vec<String>,
    pub tags: HashMap<StringString>,


line: String subject: String priority: u8 create_date: Option<Date> finish_date: Option<Date> finished: bool threshold_date: Option<Date> due_date: Option<Date> recurrence: Option<Recurrence> contexts: Vec<String> projects: Vec<String> hashtags: Vec<String> tags: HashMap<StringString>

Trait Implementations

impl Default for Task

fn default() -> Task

Returns the "default value" for a type. Read more

impl PartialEq for Task

fn eq(&self, __arg_0: &Task) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Task) -> bool

This method tests for !=.

impl Eq for Task

impl Debug for Task

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl FromStr for Task

type Err = ()

The associated error which can be returned from parsing.

fn from_str(s: &str) -> Result<Task()>

Parses a string s to return a value of this type. Read more