pub enum CaseQuestion {
Noul {
instructions: Guidance,
criteria: Option<CaseNoulCriteria>,
},
Choice {
instructions: Guidance,
criteria: IndexMap<String, Guidance>,
},
Score {
instructions: Guidance,
criteria: Vec<Guidance>,
},
}Expand description
One configured question inside a Case: the same noul/choice/score shape
crate::Question sends on the wire, deserialized from a case file instead of
built through QuestionsBuilder.
Variants§
Noul
A yes/no question. See crate::Question::Noul.
Fields
§
criteria: Option<CaseNoulCriteria>Optional per-branch criteria clarifying what counts as “true” or “false”.
Choice
A single-select question over a fixed, ordered option set. See
crate::Question::Choice.
Fields
Score
A question that places the state on an ordered scale. See
crate::Question::Score.
Trait Implementations§
Source§impl Clone for CaseQuestion
impl Clone for CaseQuestion
Source§impl Debug for CaseQuestion
impl Debug for CaseQuestion
Source§impl<'de> Deserialize<'de> for CaseQuestion
impl<'de> Deserialize<'de> for CaseQuestion
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 PartialEq for CaseQuestion
impl PartialEq for CaseQuestion
impl StructuralPartialEq for CaseQuestion
Auto Trait Implementations§
impl Freeze for CaseQuestion
impl RefUnwindSafe for CaseQuestion
impl Send for CaseQuestion
impl Sync for CaseQuestion
impl Unpin for CaseQuestion
impl UnsafeUnpin for CaseQuestion
impl UnwindSafe for CaseQuestion
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