pub struct SelectOption {
pub value: String,
pub label: Option<String>,
pub detail: Option<String>,
pub icon: Option<Icon>,
pub group: Option<String>,
pub disabled: Option<bool>,
}Expand description
An option of a select.
Fields§
§value: StringWhat value, active and change carry.
label: Option<String>What the option (and the trigger, when current) shows (default the value).
detail: Option<String>Muted mono text at the option’s right.
icon: Option<Icon>A leading icon (provider:<id> for a provider’s logo).
group: Option<String>A section header over each run of options of the same group.
disabled: Option<bool>Drawn faint and never picked.
Implementations§
Trait Implementations§
Source§impl Clone for SelectOption
impl Clone for SelectOption
Source§impl Debug for SelectOption
impl Debug for SelectOption
Source§impl Default for SelectOption
impl Default for SelectOption
impl Eq for SelectOption
Source§impl From<&str> for SelectOption
impl From<&str> for SelectOption
Source§impl From<String> for SelectOption
impl From<String> for SelectOption
Source§impl PartialEq for SelectOption
impl PartialEq for SelectOption
Source§impl Serialize for SelectOption
impl Serialize for SelectOption
impl StructuralPartialEq for SelectOption
Auto Trait Implementations§
impl Freeze for SelectOption
impl RefUnwindSafe for SelectOption
impl Send for SelectOption
impl Sync for SelectOption
impl Unpin for SelectOption
impl UnsafeUnpin for SelectOption
impl UnwindSafe for SelectOption
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.