pub struct EntryOptions {
pub command: Option<String>,
pub icon: Option<String>,
pub position: Option<MenuPosition>,
pub separator: Option<Separator>,
pub extended: bool,
}Expand description
Options for further customizing an entry
Fields§
§command: Option<String>Command to run when the entry is selected
icon: Option<String>Icon to display beside the entry
position: Option<MenuPosition>Entry position in the context menu
separator: Option<Separator>Separators to include around the entry
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 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 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