[][src]Struct i3status_rs::blocks::custom::CustomConfig

pub struct CustomConfig {
    pub interval: Update,
    pub command: Option<String>,
    pub cycle: Option<Vec<String>>,
    pub signal: Option<i32>,
    pub json: bool,
    pub hide_when_empty: bool,
    pub shell: String,
}

Fields

interval: Update

Update interval in seconds

command: Option<String>

Shell Command to execute & display

cycle: Option<Vec<String>>

Commands to execute and change when the button is clicked

signal: Option<i32>

Signal to update upon reception

json: bool

Parse command output if it contains valid bar JSON

hide_when_empty: boolshell: String

Trait Implementations

impl Clone for CustomConfig[src]

impl Debug for CustomConfig[src]

impl Default for CustomConfig[src]

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

Auto Trait Implementations

impl RefUnwindSafe for CustomConfig[src]

impl Send for CustomConfig[src]

impl Sync for CustomConfig[src]

impl Unpin for CustomConfig[src]

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