pub enum Criteria {
Choice(Vec<ChoiceOption>),
Score(Vec<Value>),
Noul {
when_false: Option<Value>,
when_true: Option<Value>,
},
}Expand description
The criteria of one question, in the shape its type takes.
Variants§
Choice(Vec<ChoiceOption>)
Options in the order they were sent.
Score(Vec<Value>)
Levels, index 0 first. Each is echoed back in the legend exactly as sent.
Noul
The optional descriptions of the false and true outcomes.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Criteria
Auto Trait Implementations§
impl Freeze for Criteria
impl RefUnwindSafe for Criteria
impl Send for Criteria
impl Sync for Criteria
impl Unpin for Criteria
impl UnsafeUnpin for Criteria
impl UnwindSafe for Criteria
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