pub struct ScoreAnswer {
pub score: f64,
pub confidence: Option<f64>,
pub probabilities: IndexMap<String, f64>,
pub legend: IndexMap<String, Guidance>,
}Expand description
A score answer.
Fields§
§score: f64The continuous score, always finite and non-negative.
confidence: Option<f64>Confidence in score, when the server reports it.
probabilities: IndexMap<String, f64>Per-level probabilities. Empty, not absent, when the server omits them.
legend: IndexMap<String, Guidance>Per-level legend text, when the server echoes it back.
Trait Implementations§
Source§impl Clone for ScoreAnswer
impl Clone for ScoreAnswer
Source§impl Debug for ScoreAnswer
impl Debug for ScoreAnswer
Source§impl PartialEq for ScoreAnswer
impl PartialEq for ScoreAnswer
Source§impl Serialize for ScoreAnswer
impl Serialize for ScoreAnswer
impl StructuralPartialEq for ScoreAnswer
Auto Trait Implementations§
impl Freeze for ScoreAnswer
impl RefUnwindSafe for ScoreAnswer
impl Send for ScoreAnswer
impl Sync for ScoreAnswer
impl Unpin for ScoreAnswer
impl UnsafeUnpin for ScoreAnswer
impl UnwindSafe for ScoreAnswer
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