[][src]Struct i3status_rs::widgets::i3block_data::I3BlockData

pub struct I3BlockData {
    pub full_text: String,
    pub short_text: Option<String>,
    pub color: Option<String>,
    pub background: Option<String>,
    pub border: Option<String>,
    pub border_top: Option<usize>,
    pub border_right: Option<usize>,
    pub border_bottom: Option<usize>,
    pub border_left: Option<usize>,
    pub min_width: Option<I3BlockMinWidth>,
    pub align: Option<I3BlockAlign>,
    pub name: Option<String>,
    pub instance: Option<String>,
    pub urgent: Option<bool>,
    pub separator: Option<bool>,
    pub separator_block_width: Option<usize>,
    pub markup: Option<String>,
}

Represent block as described in https://i3wm.org/docs/i3bar-protocol.html

Fields

full_text: Stringshort_text: Option<String>color: Option<String>background: Option<String>border: Option<String>border_top: Option<usize>border_right: Option<usize>border_bottom: Option<usize>border_left: Option<usize>min_width: Option<I3BlockMinWidth>align: Option<I3BlockAlign>name: Option<String>instance: Option<String>urgent: Option<bool>separator: Option<bool>separator_block_width: Option<usize>markup: Option<String>

Implementations

impl I3BlockData[src]

pub fn render(&self) -> String[src]

Trait Implementations

impl Clone for I3BlockData[src]

impl Debug for I3BlockData[src]

impl Default for I3BlockData[src]

Auto Trait Implementations

impl RefUnwindSafe for I3BlockData[src]

impl Send for I3BlockData[src]

impl Sync for I3BlockData[src]

impl Unpin for I3BlockData[src]

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