pub struct DropdownItem {
pub label: String,
pub value: String,
pub disabled: bool,
}Fields§
§label: String§value: String§disabled: boolImplementations§
Source§impl DropdownItem
impl DropdownItem
pub fn new(label: String, value: String) -> DropdownItem
pub fn disabled(self, disabled: bool) -> DropdownItem
Trait Implementations§
Source§impl Clone for DropdownItem
impl Clone for DropdownItem
Source§fn clone(&self) -> DropdownItem
fn clone(&self) -> DropdownItem
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 DropdownItem
impl Debug for DropdownItem
Source§impl Default for DropdownItem
impl Default for DropdownItem
Source§fn default() -> DropdownItem
fn default() -> DropdownItem
Returns the “default value” for a type. Read more
Source§impl Hash for DropdownItem
impl Hash for DropdownItem
Source§impl PartialEq for DropdownItem
impl PartialEq for DropdownItem
impl Eq for DropdownItem
impl StructuralPartialEq for DropdownItem
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