pub enum AskAnswer {
Picked {
id: String,
label: String,
},
Skipped,
Clarify {
text: String,
},
}Expand description
What the user did with an ask.
Variants§
Picked
Picked a candidate — id echoed, label as shown.
Skipped
Declined to pick (Esc). A skip is an answer too; never re-ask.
Clarify
Neither pick nor skip: the user typed a question instead — text is
their words, verbatim. Answer it in the reply and carry on; the picker
is gone (the “Chat about this” pseudo-row is how a user gets here).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AskAnswer
impl<'de> Deserialize<'de> for AskAnswer
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
impl Eq for AskAnswer
impl StructuralPartialEq for AskAnswer
Auto Trait Implementations§
impl Forget for AskAnswer
impl Freeze for AskAnswer
impl RefUnwindSafe for AskAnswer
impl Send for AskAnswer
impl Sync for AskAnswer
impl Unpin for AskAnswer
impl UnsafeUnpin for AskAnswer
impl UnwindSafe for AskAnswer
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.