pub struct EntryOptions {
pub command: Option<String>,
pub icon: Option<String>,
pub position: Option<MenuPosition>,
pub extended: bool,
}Expand description
Options for further customizing an entry
Fields§
§command: Option<String>The command to run when the entry is selected
icon: Option<String>The icon to display beside the entry
position: Option<MenuPosition>The location of the entry in the context menu (if top-level)
extended: boolWhether the entry should only appear with Shift+RClick
Trait Implementations§
Source§impl Clone for EntryOptions
impl Clone for EntryOptions
Source§fn clone(&self) -> EntryOptions
fn clone(&self) -> EntryOptions
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for EntryOptions
impl RefUnwindSafe for EntryOptions
impl Send for EntryOptions
impl Sync for EntryOptions
impl Unpin for EntryOptions
impl UnwindSafe for EntryOptions
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