pub struct MenuOption {
pub label: String,
pub enabled: bool,
pub description: Option<String>,
}Expand description
A single option in a menu list.
Fields§
§label: StringDisplay text shown to the player.
enabled: boolIf false, this option is visually dimmed and cannot be selected.
description: Option<String>Optional longer description / tooltip (not normally displayed).
Implementations§
Trait Implementations§
Source§impl Clone for MenuOption
impl Clone for MenuOption
Source§fn clone(&self) -> MenuOption
fn clone(&self) -> MenuOption
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 moreSource§impl Debug for MenuOption
impl Debug for MenuOption
impl Eq for MenuOption
Source§impl PartialEq for MenuOption
impl PartialEq for MenuOption
impl StructuralPartialEq for MenuOption
Auto Trait Implementations§
impl Freeze for MenuOption
impl RefUnwindSafe for MenuOption
impl Send for MenuOption
impl Sync for MenuOption
impl Unpin for MenuOption
impl UnsafeUnpin for MenuOption
impl UnwindSafe for MenuOption
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