pub struct MenuAction {
pub id: String,
pub label: String,
pub enabled: bool,
}Expand description
A clickable tray action.
Fields§
§id: StringStable identifier passed back to DaemonService::menu_action.
label: StringHuman-readable menu label.
enabled: boolWhether the action is currently selectable.
Trait Implementations§
Source§impl Clone for MenuAction
impl Clone for MenuAction
Source§fn clone(&self) -> MenuAction
fn clone(&self) -> MenuAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MenuAction
impl RefUnwindSafe for MenuAction
impl Send for MenuAction
impl Sync for MenuAction
impl Unpin for MenuAction
impl UnsafeUnpin for MenuAction
impl UnwindSafe for MenuAction
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