pub struct WidgetConfigType {
pub display_order: f64,
pub display_grouponly: bool,
pub display_pinned: bool,
pub icon: String,
pub color: String,
pub label: String,
pub description: String,
pub magnified: bool,
pub children: Vec<String>,
pub module: String,
pub block_def: BlockDef,
}Expand description
Widget configuration.
Fields§
§display_order: f64§display_grouponly: boolShown only inside its parent group’s flyout, not on the bar, in More or in the pane
pickers. Not the user’s Hidden (widget:hidden). Older files call this display:hidden.
display_pinned: boolWhether this widget is pinned to the action bar by default on new installs.
Once the user has a widget:pinned setting this field is ignored.
icon: String§color: String§label: String§description: String§magnified: bool§children: Vec<String>Ordered short-names (no “defwidget@” prefix, same convention as
widget:pinned) of this widget’s children. A non-empty children
list is what makes a widget entry a “parent” — it expands a submenu
on the widget bar / More dropdown instead of opening a pane, so its
own blockdef is unused.
module: StringA third-party pane tab (Pane Tab contract v1, Phase 6): path to the
widget’s ES module, relative to ~/.agentmux/widgets/ or absolute. The
frontend loads it (widget-loader.ts); blockdef.meta.view names its
ext: view. Empty for every built-in widget.
block_def: BlockDefTrait Implementations§
Source§impl Clone for WidgetConfigType
impl Clone for WidgetConfigType
Source§fn clone(&self) -> WidgetConfigType
fn clone(&self) -> WidgetConfigType
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for WidgetConfigType
impl Debug for WidgetConfigType
Source§impl Default for WidgetConfigType
impl Default for WidgetConfigType
Source§fn default() -> WidgetConfigType
fn default() -> WidgetConfigType
Source§impl<'de> Deserialize<'de> for WidgetConfigType
impl<'de> Deserialize<'de> for WidgetConfigType
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>,
Auto Trait Implementations§
impl Freeze for WidgetConfigType
impl RefUnwindSafe for WidgetConfigType
impl Send for WidgetConfigType
impl Sync for WidgetConfigType
impl Unpin for WidgetConfigType
impl UnsafeUnpin for WidgetConfigType
impl UnwindSafe for WidgetConfigType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more