pub enum QuestionKind {
Noul(String),
Choice(ChoiceSpec),
Score(ScoreSpec),
}Expand description
The three primitives. Externally tagged, so the wire form is {"id": .., "noul": ..}.
Variants§
Noul(String)
How likely the answer is yes.
Choice(ChoiceSpec)
One of up to MAX_OPTIONS options.
Score(ScoreSpec)
A position on a rubric of MIN_LEVELS..=MAX_LEVELS levels.
Trait Implementations§
Source§impl Clone for QuestionKind
impl Clone for QuestionKind
Source§fn clone(&self) -> QuestionKind
fn clone(&self) -> QuestionKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ComposeSchema for QuestionKind
impl ComposeSchema for QuestionKind
Source§impl Debug for QuestionKind
impl Debug for QuestionKind
Source§impl<'de> Deserialize<'de> for QuestionKind
impl<'de> Deserialize<'de> for QuestionKind
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
Source§impl Serialize for QuestionKind
impl Serialize for QuestionKind
Auto Trait Implementations§
impl Freeze for QuestionKind
impl RefUnwindSafe for QuestionKind
impl Send for QuestionKind
impl Sync for QuestionKind
impl Unpin for QuestionKind
impl UnsafeUnpin for QuestionKind
impl UnwindSafe for QuestionKind
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