pub struct QuestionSpec {
pub header: String,
pub question: String,
pub multi_select: bool,
pub options: Vec<QuestionOption>,
}Expand description
One question in a TurnPauseReason::Question pause.
Fields§
§header: StringShort label for this question, suitable for a chip or tab.
question: StringThe full question text.
multi_select: boolWhether the user may select more than one option.
options: Vec<QuestionOption>The offered choices. A free-text “Other” affordance is the client’s to add; it is never part of this list.
Trait Implementations§
Source§impl Clone for QuestionSpec
impl Clone for QuestionSpec
Source§impl Debug for QuestionSpec
impl Debug for QuestionSpec
Source§impl<'de> Deserialize<'de> for QuestionSpec
impl<'de> Deserialize<'de> for QuestionSpec
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 QuestionSpec
impl PartialEq for QuestionSpec
Source§impl Serialize for QuestionSpec
impl Serialize for QuestionSpec
impl StructuralPartialEq for QuestionSpec
Auto Trait Implementations§
impl Freeze for QuestionSpec
impl RefUnwindSafe for QuestionSpec
impl Send for QuestionSpec
impl Sync for QuestionSpec
impl Unpin for QuestionSpec
impl UnsafeUnpin for QuestionSpec
impl UnwindSafe for QuestionSpec
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