pub struct Question {
pub question_id: String,
pub required: bool,
pub choice_question: Option<ChoiceQuestion>,
pub text_question: Option<TextQuestion>,
pub scale_question: Option<ScaleQuestion>,
}Expand description
The question inside a QuestionItem.
Fields§
§question_id: StringOpaque server-assigned question ID.
required: boolWhether an answer is required.
choice_question: Option<ChoiceQuestion>Set when this is a multiple-choice / checkbox / dropdown question.
text_question: Option<TextQuestion>Set when this is a short-answer or paragraph question.
scale_question: Option<ScaleQuestion>Set when this is a linear-scale question.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Question
impl<'de> Deserialize<'de> for Question
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
Auto Trait Implementations§
impl Freeze for Question
impl RefUnwindSafe for Question
impl Send for Question
impl Sync for Question
impl Unpin for Question
impl UnsafeUnpin for Question
impl UnwindSafe for Question
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