[][src]Struct i3status_rs::blocks::taskwarrior::TaskwarriorConfig

pub struct TaskwarriorConfig {
    pub interval: Duration,
    pub warning_threshold: u32,
    pub critical_threshold: u32,
    pub filter_tags: Vec<String>,
    pub filters: Vec<Filter>,
    pub format: String,
    pub format_singular: String,
    pub format_everything_done: String,
}

Fields

interval: Duration

Update interval in seconds

warning_threshold: u32

Threshold from which on the block is marked with a warning indicator

critical_threshold: u32

Threshold from which on the block is marked with a critical indicator

filter_tags: Vec<String>

A list of tags a task has to have before it's used for counting pending tasks (DEPRECATED) use filters instead

filters: Vec<Filter>

A list of named filter criteria which must be fulfilled to be counted towards the total, when that filter is active.

format: String

Format override

format_singular: String

Format override if the count is one

format_everything_done: String

Format override if the count is zero

Implementations

impl TaskwarriorConfig[src]

fn default_interval() -> Duration[src]

fn default_threshold_warning() -> u32[src]

fn default_threshold_critical() -> u32[src]

fn default_filter_tags() -> Vec<String>[src]

fn default_filters() -> Vec<Filter>[src]

fn default_format() -> String[src]

Trait Implementations

impl Clone for TaskwarriorConfig[src]

impl Debug for TaskwarriorConfig[src]

impl Default for TaskwarriorConfig[src]

impl<'de> Deserialize<'de> for TaskwarriorConfig[src]

Auto Trait Implementations

impl RefUnwindSafe for TaskwarriorConfig[src]

impl Send for TaskwarriorConfig[src]

impl Sync for TaskwarriorConfig[src]

impl Unpin for TaskwarriorConfig[src]

impl UnwindSafe for TaskwarriorConfig[src]

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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.