pub struct SelectOption {
pub value: String,
pub label: String,
}Expand description
One entry of a [Select]: the submitted value and the displayed label.
Fields§
§value: String§label: StringImplementations§
Trait Implementations§
Source§impl Clone for SelectOption
impl Clone for SelectOption
Source§impl Debug for SelectOption
impl Debug 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
impl StructuralPartialEq for SelectOption
Auto Trait Implementations§
impl Forget for SelectOption
impl Freeze for SelectOption
impl Move 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.