pub struct WidgetConfig {
pub name: String,
pub command: Option<String>,
pub builtin: Option<BuiltinWidget>,
pub interval_secs: u64,
pub timeout_secs: u64,
}Expand description
One widget: a built-in one, or a command whose output is shown (see
crate::widget for the output format).
Fields§
§name: StringTitle of the widget.
command: Option<String>Shell command printing the content.
builtin: Option<BuiltinWidget>Or a built-in widget.
interval_secs: u64Seconds between runs of the command.
timeout_secs: u64Seconds after which a run is killed.
Trait Implementations§
Source§impl Clone for WidgetConfig
impl Clone for WidgetConfig
Source§impl Debug for WidgetConfig
impl Debug for WidgetConfig
Source§impl Default for WidgetConfig
impl Default for WidgetConfig
Source§impl<'de> Deserialize<'de> for WidgetConfigwhere
WidgetConfig: Default,
impl<'de> Deserialize<'de> for WidgetConfigwhere
WidgetConfig: Default,
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
Source§impl PartialEq for WidgetConfig
impl PartialEq for WidgetConfig
Source§impl Serialize for WidgetConfig
impl Serialize for WidgetConfig
impl StructuralPartialEq for WidgetConfig
Auto Trait Implementations§
impl Freeze for WidgetConfig
impl RefUnwindSafe for WidgetConfig
impl Send for WidgetConfig
impl Sync for WidgetConfig
impl Unpin for WidgetConfig
impl UnsafeUnpin for WidgetConfig
impl UnwindSafe for WidgetConfig
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