pub struct Props {
pub id: String,
pub trigger: Markup,
pub items: Vec<MenuEntry>,
}Expand description
Context menu rendering properties
Fields§
§id: StringUnique identifier for the menu
trigger: MarkupContent that can be right-clicked to trigger the menu
items: Vec<MenuEntry>Menu entries (items, separators, and labels)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Props
impl RefUnwindSafe for Props
impl Send for Props
impl Sync for Props
impl Unpin for Props
impl UnsafeUnpin for Props
impl UnwindSafe for Props
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