pub enum DropdownItem {
Link {
text: String,
href: String,
},
Active {
text: String,
href: String,
},
Disabled {
text: String,
href: String,
},
Divider,
Header(String),
Text(String),
}Expand description
A dropdown menu item.
Variants§
Link
A clickable link item.
Active
An active (highlighted) link item.
Disabled
A disabled link item.
Divider
A divider line.
Header(String)
A non-interactive header.
Text(String)
Plain text (non-interactive).
Implementations§
Auto Trait Implementations§
impl Freeze for DropdownItem
impl RefUnwindSafe for DropdownItem
impl Send for DropdownItem
impl Sync for DropdownItem
impl Unpin for DropdownItem
impl UnwindSafe for DropdownItem
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