Enum opentdb::enums::question_type::QuestionType
source · 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
sourceimpl QuestionType
impl QuestionType
Trait Implementations
sourceimpl Debug for QuestionType
impl Debug for QuestionType
sourceimpl Default for QuestionType
impl Default for QuestionType
sourceimpl<'de> Deserialize<'de> for QuestionType
impl<'de> Deserialize<'de> for QuestionType
sourcefn 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 RefUnwindSafe for QuestionType
impl Send for QuestionType
impl Sync for QuestionType
impl Unpin for QuestionType
impl UnwindSafe for QuestionType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more