pub struct WidgetRow {
pub label: String,
pub value: String,
pub gauge: Option<f32>,
pub gauge_style: GaugeStyle,
pub level: Level,
pub heading: bool,
}Expand description
One line of a widget.
Fields§
§label: StringShort name on the left (may be empty).
value: StringThe text.
gauge: Option<f32>A bar for a fraction (0-1), e.g. a quota used.
gauge_style: GaugeStyleHow the bar is colored.
level: LevelColor of the value.
heading: boolA section title (e.g. a project name) rather than a reading.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WidgetRow
impl<'de> Deserialize<'de> for WidgetRow
Source§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
impl StructuralPartialEq for WidgetRow
Auto Trait Implementations§
impl Freeze for WidgetRow
impl RefUnwindSafe for WidgetRow
impl Send for WidgetRow
impl Sync for WidgetRow
impl Unpin for WidgetRow
impl UnsafeUnpin for WidgetRow
impl UnwindSafe for WidgetRow
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more