pub struct AskOption {
pub id: String,
pub label: String,
pub note: Option<String>,
}Expand description
One candidate the user can pick. id is the caller’s stable key (echoed
back on pick); label is what the picker shows and what comes back with
the answer.
Fields§
§id: String§label: String§note: Option<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for AskOption
impl<'de> Deserialize<'de> for AskOption
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AskOption, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AskOption, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AskOption
Source§impl Serialize for AskOption
impl Serialize for AskOption
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for AskOption
Auto Trait Implementations§
impl Forget for AskOption
impl Freeze for AskOption
impl RefUnwindSafe for AskOption
impl Send for AskOption
impl Sync for AskOption
impl Unpin for AskOption
impl UnsafeUnpin for AskOption
impl UnwindSafe for AskOption
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.