Struct swaybar_types::Block [−][src]
pub struct Block {Show 17 fields
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<u32>,
pub border_bottom: Option<u32>,
pub border_left: Option<u32>,
pub border_right: Option<u32>,
pub min_width: Option<Width>,
pub align: Option<Align>,
pub name: Option<String>,
pub instance: Option<String>,
pub urgent: Option<bool>,
pub separator: Option<bool>,
pub separator_block_width: Option<u32>,
pub markup: Option<Markup>,
}
Fields
full_text: String
short_text: Option<String>
color: Option<String>
background: Option<String>
border: Option<String>
border_top: Option<u32>
border_bottom: Option<u32>
border_left: Option<u32>
border_right: Option<u32>
min_width: Option<Width>
align: Option<Align>
name: Option<String>
instance: Option<String>
urgent: Option<bool>
separator: Option<bool>
separator_block_width: Option<u32>
markup: Option<Markup>
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Block
impl UnwindSafe for Block
Blanket Implementations
Mutably borrows from an owned value. Read more