pub struct ContextMenuItem {
pub label: String,
pub icon: String,
pub action: String,
pub disabled: bool,
}Fields§
§label: String§icon: String§action: String§disabled: boolImplementations§
Source§impl ContextMenuItem
impl ContextMenuItem
pub fn new(label: String) -> ContextMenuItem
pub fn icon(self, icon: String) -> ContextMenuItem
pub fn action(self, action: String) -> ContextMenuItem
pub fn disabled(self, disabled: bool) -> ContextMenuItem
Trait Implementations§
Source§impl Clone for ContextMenuItem
impl Clone for ContextMenuItem
Source§fn clone(&self) -> ContextMenuItem
fn clone(&self) -> ContextMenuItem
Returns a duplicate of the value. Read more
1.0.0 · 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 ContextMenuItem
impl Debug for ContextMenuItem
Source§impl Default for ContextMenuItem
impl Default for ContextMenuItem
Source§fn default() -> ContextMenuItem
fn default() -> ContextMenuItem
Returns the “default value” for a type. Read more
Source§impl Hash for ContextMenuItem
impl Hash for ContextMenuItem
Source§impl PartialEq for ContextMenuItem
impl PartialEq for ContextMenuItem
impl Eq for ContextMenuItem
impl StructuralPartialEq for ContextMenuItem
Auto Trait Implementations§
impl Freeze for ContextMenuItem
impl RefUnwindSafe for ContextMenuItem
impl Send for ContextMenuItem
impl Sync for ContextMenuItem
impl Unpin for ContextMenuItem
impl UnwindSafe for ContextMenuItem
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