pub enum Answer {
Noul {
p: f32,
},
Choice {
choice: String,
probabilities: BTreeMap<String, f32>,
confidence: f32,
},
Score {
score: f32,
probabilities: BTreeMap<String, f32>,
confidence: f32,
legend: BTreeMap<String, String>,
},
}Expand description
One typed answer.
Variants§
Noul
p = probability of yes/true.
Choice
Score
score = Σ p_i · i over 0-based level indices (probability-weighted
index). probabilities and legend are keyed by the index as a
decimal string ("0", "1", …).
Implementations§
Trait Implementations§
impl StructuralPartialEq for Answer
Auto Trait Implementations§
impl Freeze for Answer
impl RefUnwindSafe for Answer
impl Send for Answer
impl Sync for Answer
impl Unpin for Answer
impl UnsafeUnpin for Answer
impl UnwindSafe for Answer
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