pub enum DecisionValue {
Boolean(BooleanEstimate),
Choice {
selected: String,
probabilities: Option<BTreeMap<String, Probability>>,
},
Score {
value: ScoreValue,
probabilities: Option<Vec<Probability>>,
},
}Expand description
A typed estimate; missing distributions remain unknown.
Variants§
Boolean(BooleanEstimate)
A Boolean judgment or probability, without an implicit threshold.
Choice
One selected option with an optional complete distribution.
Fields
§
probabilities: Option<BTreeMap<String, Probability>>Maps every declared option ID to its probability when available.
Score
A fractional position in the matching request’s rubric.
Fields
§
value: ScoreValueMust lie in 0..=N-1 for the request’s N levels.
§
probabilities: Option<Vec<Probability>>Follows the request’s level order. Retain that request to interpret it.
Trait Implementations§
Source§impl Clone for DecisionValue
impl Clone for DecisionValue
Source§fn clone(&self) -> DecisionValue
fn clone(&self) -> DecisionValue
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 DecisionValue
impl Debug for DecisionValue
Source§impl<'de> Deserialize<'de> for DecisionValue
impl<'de> Deserialize<'de> for DecisionValue
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 DecisionValue
impl PartialEq for DecisionValue
Source§impl Serialize for DecisionValue
impl Serialize for DecisionValue
impl StructuralPartialEq for DecisionValue
Auto Trait Implementations§
impl Freeze for DecisionValue
impl RefUnwindSafe for DecisionValue
impl Send for DecisionValue
impl Sync for DecisionValue
impl Unpin for DecisionValue
impl UnsafeUnpin for DecisionValue
impl UnwindSafe for DecisionValue
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