pub enum QuestionType {
Multichoice(MultiChoiceQuestion),
TrueFalse(TrueFalseQuestion),
ShortAnswer(ShortAnswerQuestion),
Essay(EssayQuestion),
}
Expand description
Represents the different types of questions that can be included in a quiz.
Multichoice
: A multiple-choice question with several answer options.TrueFalse
: A true/false question.ShortAnswer
: A short-answer question.- TODO -
Matching
: A matching question where items need to be paired. - TODO -
Cloze
: A cloze (fill-in-the-blank) question. Essay
: An essay question.- TODO
Numerical
: A numerical answer question. - TODO -
Description
: A descriptive question.
Variants§
Multichoice(MultiChoiceQuestion)
TrueFalse(TrueFalseQuestion)
ShortAnswer(ShortAnswerQuestion)
Essay(EssayQuestion)
Implementations§
Source§impl QuestionType
impl QuestionType
Trait Implementations§
Source§impl From<EssayQuestion> for QuestionType
impl From<EssayQuestion> for QuestionType
Source§fn from(question: EssayQuestion) -> Self
fn from(question: EssayQuestion) -> Self
Converts to this type from the input type.
Source§impl From<MultiChoiceQuestion> for QuestionType
impl From<MultiChoiceQuestion> for QuestionType
Source§fn from(question: MultiChoiceQuestion) -> Self
fn from(question: MultiChoiceQuestion) -> Self
Converts to this type from the input type.
Source§impl From<ShortAnswerQuestion> for QuestionType
impl From<ShortAnswerQuestion> for QuestionType
Source§fn from(question: ShortAnswerQuestion) -> Self
fn from(question: ShortAnswerQuestion) -> Self
Converts to this type from the input type.
Source§impl From<TrueFalseQuestion> for QuestionType
impl From<TrueFalseQuestion> for QuestionType
Source§fn from(question: TrueFalseQuestion) -> Self
fn from(question: TrueFalseQuestion) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for QuestionType
impl RefUnwindSafe for QuestionType
impl Send for QuestionType
impl Sync for QuestionType
impl Unpin for QuestionType
impl UnwindSafe for QuestionType
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