pub struct MenuItem<'a> {
pub text: &'a str,
pub link: Option<&'a str>,
pub children: Option<&'a Menu<'a>>,
}Expand description
An entry in the menu.
Fields§
§text: &'a strText to display.
link: Option<&'a str>Where the entry links to, if it links to one.
children: Option<&'a Menu<'a>>A child menu, if one exists.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for MenuItem<'a>
impl<'a> RefUnwindSafe for MenuItem<'a>
impl<'a> Send for MenuItem<'a>
impl<'a> Sync for MenuItem<'a>
impl<'a> Unpin for MenuItem<'a>
impl<'a> UnwindSafe for MenuItem<'a>
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