pub struct MenuItem {
pub label: String,
pub display: Conditional,
pub active: Conditional,
pub reaction: Reaction,
/* private fields */
}
Fields§
§label: String
The string shown on the menu item.
display: Conditional
Whether the menu item should be shown.
active: Conditional
Whether the menu item should be clickable / not disabled.
reaction: Reaction
What should be done when the user hovers and/or clicks on the menu item.
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 PartialEq for MenuItem
impl PartialEq for MenuItem
impl Eq for MenuItem
impl StructuralPartialEq for MenuItem
Auto Trait Implementations§
impl Freeze for MenuItem
impl RefUnwindSafe for MenuItem
impl Send for MenuItem
impl Sync for MenuItem
impl Unpin 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