pub struct ComboboxOption {
pub value: Cow<'static, str>,
pub label: Cow<'static, str>,
}Expand description
A single option in a Combobox listbox.
Fields§
§value: Cow<'static, str>Submitted form value for the option.
label: Cow<'static, str>User-visible label rendered inside the option.
Implementations§
Trait Implementations§
Source§impl Clone for ComboboxOption
impl Clone for ComboboxOption
Source§fn clone(&self) -> ComboboxOption
fn clone(&self) -> ComboboxOption
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ComboboxOption
impl Debug for ComboboxOption
Source§impl Default for ComboboxOption
impl Default for ComboboxOption
Source§fn default() -> ComboboxOption
fn default() -> ComboboxOption
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ComboboxOption
impl RefUnwindSafe for ComboboxOption
impl Send for ComboboxOption
impl Sync for ComboboxOption
impl Unpin for ComboboxOption
impl UnsafeUnpin for ComboboxOption
impl UnwindSafe for ComboboxOption
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