pub struct PanelAction {
pub id: String,
pub icon: Option<String>,
pub label: String,
pub hint: String,
pub separated: bool,
}Expand description
A small icon button: in a section’s title, on its own
(Widget::Action: a cross at a row’s end that takes it out), or an
entry of an item’s menu (label then names it). A click comes back as
PanelEvent::Button (a section’s or one on its own) or
PanelEvent::ContextMenu (a menu’s) with id.
Fields§
§id: String§icon: Option<String>§label: StringThe words on hover, or the menu entry.
hint: StringA menu entry’s words on hover.
separated: boolA menu entry with a line above it, setting it apart.
Trait Implementations§
Source§impl Clone for PanelAction
impl Clone for PanelAction
Source§impl Debug for PanelAction
impl Debug for PanelAction
Source§impl Default for PanelAction
impl Default for PanelAction
Source§impl<'de> Deserialize<'de> for PanelAction
impl<'de> Deserialize<'de> for PanelAction
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 From<PanelAction> for Widget
impl From<PanelAction> for Widget
Source§fn from(block: PanelAction) -> Self
fn from(block: PanelAction) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PanelAction
impl PartialEq for PanelAction
Source§impl Serialize for PanelAction
impl Serialize for PanelAction
impl StructuralPartialEq for PanelAction
Auto Trait Implementations§
impl Forget for PanelAction
impl Freeze for PanelAction
impl Move for PanelAction
impl RefUnwindSafe for PanelAction
impl Send for PanelAction
impl Sync for PanelAction
impl Unpin for PanelAction
impl UnsafeUnpin for PanelAction
impl UnwindSafe for PanelAction
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