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

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

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

impl Clone for Conf[src]

impl Debug for Conf[src]

impl Default for Conf[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,