[][src]Struct i3status_rs::blocks::apt::AptConfig

pub struct AptConfig {
    pub interval: Duration,
    pub format: String,
    pub format_singular: String,
    pub format_up_to_date: String,
    pub warning_updates_regex: Option<String>,
    pub critical_updates_regex: Option<String>,
}

Fields

interval: Duration

Update interval in seconds

format: String

Format override

format_singular: String

Alternative format override for when exactly 1 update is available

format_up_to_date: String

Alternative format override for when no updates are available

warning_updates_regex: Option<String>

Indicate a warning state for the block if any pending update match the following regex. Default behaviour is that no package updates are deemed warning

critical_updates_regex: Option<String>

Indicate a critical state for the block if any pending update match the following regex. Default behaviour is that no package updates are deemed critical

Trait Implementations

impl Clone for AptConfig[src]

impl Debug for AptConfig[src]

impl Default for AptConfig[src]

impl<'de> Deserialize<'de> for AptConfig where
    AptConfig: Default
[src]

Auto Trait Implementations

impl RefUnwindSafe for AptConfig[src]

impl Send for AptConfig[src]

impl Sync for AptConfig[src]

impl Unpin for AptConfig[src]

impl UnwindSafe for AptConfig[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.