pub struct SelectionOption {
pub id: String,
pub label: String,
pub description: Option<String>,
}Expand description
A single option in a SelectionRequired picker.
Fields§
§id: StringMachine-readable identifier sent back to the capsule.
label: StringHuman-readable label shown in the picker.
description: Option<String>Optional description shown alongside the label.
Trait Implementations§
Source§impl Clone for SelectionOption
impl Clone for SelectionOption
Source§fn clone(&self) -> SelectionOption
fn clone(&self) -> SelectionOption
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 SelectionOption
impl Debug for SelectionOption
Source§impl<'de> Deserialize<'de> for SelectionOption
impl<'de> Deserialize<'de> for SelectionOption
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SelectionOption
impl PartialEq for SelectionOption
Source§fn eq(&self, other: &SelectionOption) -> bool
fn eq(&self, other: &SelectionOption) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SelectionOption
impl Serialize for SelectionOption
impl StructuralPartialEq for SelectionOption
Auto Trait Implementations§
impl Freeze for SelectionOption
impl RefUnwindSafe for SelectionOption
impl Send for SelectionOption
impl Sync for SelectionOption
impl Unpin for SelectionOption
impl UnsafeUnpin for SelectionOption
impl UnwindSafe for SelectionOption
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