#[non_exhaustive]pub enum Question<'a> {
Noul(Noul<'a>),
Choice(Choice<'a>),
Score(Score<'a>),
Raw(RawQuestion<'a>),
}Expand description
Any one question, for code that builds a question set from data.
Questions has a method per kind; this is what
Questions::question takes, and every question type converts into it.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Noul(Noul<'a>)
A yes/no question.
Choice(Choice<'a>)
A question that picks one option.
Score(Score<'a>)
A question that rates on a scale.
Raw(RawQuestion<'a>)
A question this version of the SDK does not model.
Trait Implementations§
impl<'a> Eq for Question<'a>
Source§impl<'a> From<RawQuestion<'a>> for Question<'a>
impl<'a> From<RawQuestion<'a>> for Question<'a>
Source§fn from(question: RawQuestion<'a>) -> Self
fn from(question: RawQuestion<'a>) -> Self
Converts to this type from the input type.
impl<'a> StructuralPartialEq for Question<'a>
Auto Trait Implementations§
impl<'a> Freeze for Question<'a>
impl<'a> RefUnwindSafe for Question<'a>
impl<'a> Send for Question<'a>
impl<'a> Sync for Question<'a>
impl<'a> Unpin for Question<'a>
impl<'a> UnsafeUnpin for Question<'a>
impl<'a> UnwindSafe for Question<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.