pub struct ContextMenu {
pub items: Vec<ContextMenuItem>,
pub trigger_id: String,
}Fields§
§items: Vec<ContextMenuItem>§trigger_id: StringImplementations§
Source§impl ContextMenu
impl ContextMenu
pub fn new(trigger_id: String) -> ContextMenu
pub fn item(self, item: ContextMenuItem) -> ContextMenu
Trait Implementations§
Source§impl Clone for ContextMenu
impl Clone for ContextMenu
Source§fn clone(&self) -> ContextMenu
fn clone(&self) -> ContextMenu
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 ContextMenu
impl Debug for ContextMenu
Source§impl Default for ContextMenu
impl Default for ContextMenu
Source§fn default() -> ContextMenu
fn default() -> ContextMenu
Returns the “default value” for a type. Read more
Source§impl Renderable for ContextMenu
impl Renderable for ContextMenu
Auto Trait Implementations§
impl Freeze for ContextMenu
impl RefUnwindSafe for ContextMenu
impl Send for ContextMenu
impl Sync for ContextMenu
impl Unpin for ContextMenu
impl UnwindSafe for ContextMenu
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