pub struct Action {
pub value: String,
pub label: String,
pub title: Option<String>,
pub group: Option<String>,
pub enabled: bool,
pub active: bool,
}Expand description
Something to do or to choose, as an Control::Actions offers it.
Fields§
§value: StringWhat pressing it sends back, as super::Value::Choice.
label: String§title: Option<String>What it does — or, disabled, why it cannot be done now.
group: Option<String>Actions of one group are shown together under its name.
enabled: bool§active: boolShown pressed: the tool in hand, the way chosen.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnsafeUnpin for Action
impl UnwindSafe for Action
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