pub struct MenuItem {
pub disabled: Option<bool>,
pub icon: Option<Icon>,
pub is_selected: Option<bool>,
pub on_pressed: Option<Listener>,
pub text: String,
pub type_: Value,
}Expand description
Element of type MenuItem
Fields§
§disabled: Option<bool>Whether the element should be disabled or not.
icon: Option<Icon>§is_selected: Option<bool>Whether the element is selected or not.
on_pressed: Option<Listener>§text: StringThe text of the element
type_: ValueThe identifier of the component
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MenuItem
impl<'de> Deserialize<'de> for MenuItem
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<MenuItem> for LenraComponent
impl From<MenuItem> for LenraComponent
Auto Trait Implementations§
impl Freeze for MenuItem
impl RefUnwindSafe for MenuItem
impl Send for MenuItem
impl Sync for MenuItem
impl Unpin for MenuItem
impl UnsafeUnpin for MenuItem
impl UnwindSafe for MenuItem
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