pub struct MultipleChoicePrompt {
pub prompt: Markdown,
pub distractors: Vec<Markdown>,
pub answer_index: Option<usize>,
pub sort_answers: Option<bool>,
}
Expand description
A prompt for a MultipleChoice
question.
Fields§
§prompt: Markdown
The text of the prompt.
distractors: Vec<Markdown>
An array of incorrect answers.
answer_index: Option<usize>
If defined, don’t randomize distractors and put answer at this index.
sort_answers: Option<bool>
If defined, don’t randomize distractors and sort answers by content.
Trait Implementations§
Source§impl Debug for MultipleChoicePrompt
impl Debug for MultipleChoicePrompt
Source§impl<'de> Deserialize<'de> for MultipleChoicePrompt
impl<'de> Deserialize<'de> for MultipleChoicePrompt
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 MultipleChoicePrompt
impl RefUnwindSafe for MultipleChoicePrompt
impl Send for MultipleChoicePrompt
impl Sync for MultipleChoicePrompt
impl Unpin for MultipleChoicePrompt
impl UnwindSafe for MultipleChoicePrompt
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