pub struct ChoiceQuestion {
pub instructions: Entry,
pub criteria: IndexMap<String, Entry>,
pub extra: Map<String, Value>,
}Expand description
A question that selects one of several named labels.
Fields§
§instructions: EntryThe question as text, a JSON object or array, or null.
criteria: IndexMap<String, Entry>Labels mapped to descriptions; Entry::Null leaves a label undescribed.
extra: Map<String, Value>Fields this crate does not model yet, sent as written.
Implementations§
Trait Implementations§
Source§impl Clone for ChoiceQuestion
impl Clone for ChoiceQuestion
Source§impl Debug for ChoiceQuestion
impl Debug for ChoiceQuestion
Source§impl Default for ChoiceQuestion
impl Default for ChoiceQuestion
Source§impl<'de> Deserialize<'de> for ChoiceQuestion
impl<'de> Deserialize<'de> for ChoiceQuestion
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 From<ChoiceQuestion> for Question
impl From<ChoiceQuestion> for Question
Source§fn from(question: ChoiceQuestion) -> Self
fn from(question: ChoiceQuestion) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ChoiceQuestion
impl PartialEq for ChoiceQuestion
Source§impl QuestionKind for ChoiceQuestion
impl QuestionKind for ChoiceQuestion
Source§type Answer = ChoiceAnswer
type Answer = ChoiceAnswer
The answer this question produces.
Source§impl Serialize for ChoiceQuestion
impl Serialize for ChoiceQuestion
impl StructuralPartialEq for ChoiceQuestion
Auto Trait Implementations§
impl Freeze for ChoiceQuestion
impl RefUnwindSafe for ChoiceQuestion
impl Send for ChoiceQuestion
impl Sync for ChoiceQuestion
impl Unpin for ChoiceQuestion
impl UnsafeUnpin for ChoiceQuestion
impl UnwindSafe for ChoiceQuestion
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