pub enum QuestionType {
All,
Multiple,
Boolean,
}Expand description
The Question Type is what describes what sort of question type this is.
The “Multiple” question type will give multiple-choice questions, where there is one correct answer and multiple incorrect ones.
The “Boolean” question type will give you true/false questions.
Variants§
All
Do not filter question types
Multiple
Filter by Multiple Choice questions
Boolean
Filter by true/false questions
Implementations§
Trait Implementations§
Source§impl Debug for QuestionType
impl Debug for QuestionType
Source§impl Default for QuestionType
impl Default for QuestionType
Source§impl<'de> Deserialize<'de> for QuestionType
impl<'de> Deserialize<'de> for QuestionType
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 QuestionType
impl RefUnwindSafe for QuestionType
impl Send for QuestionType
impl Sync for QuestionType
impl Unpin for QuestionType
impl UnsafeUnpin 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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more