pub enum DecisionKind {
Boolean {
true_description: Option<Value>,
false_description: Option<Value>,
},
Choice {
options: Vec<ChoiceOption>,
},
Score {
levels: Vec<Value>,
},
}Expand description
The answer shape and any options or ordered rubric levels.
Variants§
Boolean
A Boolean judgment or probability of true.
Fields
Choice
Select one of the declared options.
Fields
§
options: Vec<ChoiceOption>Nonempty options with unique IDs, preserving caller order.
Score
A position on an ordered rubric, not an arbitrary numeric measurement.
Trait Implementations§
Source§impl Clone for DecisionKind
impl Clone for DecisionKind
Source§fn clone(&self) -> DecisionKind
fn clone(&self) -> DecisionKind
Returns a duplicate of the value. Read more
1.0.0 · 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 DecisionKind
impl Debug for DecisionKind
Source§impl<'de> Deserialize<'de> for DecisionKind
impl<'de> Deserialize<'de> for DecisionKind
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 DecisionKind
impl PartialEq for DecisionKind
Source§impl Serialize for DecisionKind
impl Serialize for DecisionKind
impl StructuralPartialEq for DecisionKind
Auto Trait Implementations§
impl Freeze for DecisionKind
impl RefUnwindSafe for DecisionKind
impl Send for DecisionKind
impl Sync for DecisionKind
impl Unpin for DecisionKind
impl UnsafeUnpin for DecisionKind
impl UnwindSafe for DecisionKind
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