pub enum QuestionBody {
Noul {
criteria: Option<NoulCriteria>,
},
Choice {
options: Vec<ChoiceOption>,
},
Score {
levels: Vec<Option<Entry>>,
},
}Expand description
The per-kind payload of a question spec.
Variants§
Noul
Noul: optional true/false criteria.
Fields
§
criteria: Option<NoulCriteria>Optional descriptions of the two outcomes.
Choice
Choice: 2–255 options (D2) in canonical authoring order.
Fields
§
options: Vec<ChoiceOption>Options in insertion order — this order is canonical (D6).
Score
Score: ≥ 2 ordered levels (D1); index = level, 0-based. None = undescribed (D3).
Trait Implementations§
Source§impl Clone for QuestionBody
impl Clone for QuestionBody
Source§fn clone(&self) -> QuestionBody
fn clone(&self) -> QuestionBody
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 Debug for QuestionBody
impl Debug for QuestionBody
Source§impl PartialEq for QuestionBody
impl PartialEq for QuestionBody
Source§fn eq(&self, other: &QuestionBody) -> bool
fn eq(&self, other: &QuestionBody) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for QuestionBody
Auto Trait Implementations§
impl Freeze for QuestionBody
impl RefUnwindSafe for QuestionBody
impl Send for QuestionBody
impl Sync for QuestionBody
impl Unpin for QuestionBody
impl UnsafeUnpin for QuestionBody
impl UnwindSafe for QuestionBody
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