Struct todo_lib::tsort::Conf[][src]

pub struct Conf {
    pub fields: Option<String>,
    pub rev: bool,
}
Expand description

Sorting rules. First, the list of todos is sorted by the fields defined in fields in order of appearance. Then, if rev is true the list is reversed

Fields

fields: Option<String>

comma separated list of field to sort by. Supported field names:

  • pri or prioroty - sort by priority (without priority are the last ones);
  • due - sor by due date (todos that do not have due date are at the bottom);
  • thr - sor by threshold date (todos that do not have threshold date are at the bottom);
  • completed or finished - sort by completion date (incomplete ones are at the bottom);
  • created or create - sort by creation date;
  • subject, subj or text - sort by todo’s subjects;
  • done - order: incomplete, recurrent, and done todos;
  • project or proj - sort by project names, if todos have more than one project they are compared in order of appearance and shorter list of projects goes first;
  • context or ctx - sort by contexts, if todos have more than one context they are compared in order of appearance and shorter list of contexts goes first;
rev: bool

reverse the list after sorting

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.