pub struct MenuItem {
pub id: String,
pub label: String,
pub icon: Option<String>,
pub hint: Option<String>,
pub enabled: bool,
pub separator_before: bool,
pub checked: bool,
}Fields§
§id: String§label: String§icon: Option<String>§hint: Option<String>§enabled: bool§separator_before: bool§checked: boolDrawn ticked, the choice that stands among the entries (from 0.1.8).
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
impl Eq for MenuItem
impl StructuralPartialEq for MenuItem
Auto Trait Implementations§
impl Forget for MenuItem
impl Freeze for MenuItem
impl Move 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