[][src]Struct i3status_rs::blocks::time::TimeConfig

pub struct TimeConfig {
    pub format: String,
    pub interval: Duration,
    pub timezone: Option<Tz>,
    pub locale: Option<String>,
}

Configuration for the time block

Fields

format: String

A string to customise the output of this block. See the chrono docs for all options. Text may need to be escaped, refer to Escaping Text.

The default value is "%a %d/%m %R"

interval: Duration

Update interval in seconds.

The default value is 5

timezone: Option<Tz>

A timezone specifier (e.g. "Europe/Lisbon").

By default the local timezone is used

locale: Option<String>

Locale to apply when formatting the time.

By default the system locale is used

Trait Implementations

impl Clone for TimeConfig[src]

impl Debug for TimeConfig[src]

impl Default for TimeConfig[src]

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

Auto Trait Implementations

impl RefUnwindSafe for TimeConfig[src]

impl Send for TimeConfig[src]

impl Sync for TimeConfig[src]

impl Unpin for TimeConfig[src]

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