pub struct MenuEntry {
pub id: String,
pub arg: i32,
pub label: String,
pub key: String,
pub enabled: bool,
}Expand description
One entry of a context menu (crate::protocol::Out::Menu): an action
from the mode’s own action registry, so the menu and the key bindings
never drift apart. Picking it is the same ui.action (id, arg) its
key or button sends.
Fields§
§id: String§arg: i32§label: String§key: StringThe action’s current key as typed (s, enter); empty: none.
enabled: boolTrait Implementations§
Source§impl<'de> Deserialize<'de> for MenuEntry
impl<'de> Deserialize<'de> for MenuEntry
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
impl Eq for MenuEntry
impl StructuralPartialEq for MenuEntry
Auto Trait Implementations§
impl Forget for MenuEntry
impl Freeze for MenuEntry
impl RefUnwindSafe for MenuEntry
impl Send for MenuEntry
impl Sync for MenuEntry
impl Unpin for MenuEntry
impl UnsafeUnpin for MenuEntry
impl UnwindSafe for MenuEntry
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