pub struct ScoreAnswer<'a> {
pub score: f64,
pub confidence: f64,
pub legend: &'a IndexMap<String, String>,
pub probabilities: &'a IndexMap<String, f64>,
pub evidence: &'a [EvidenceSpan],
pub raw: &'a Answer,
}Expand description
Checked score answer.
Fields§
§score: f64Weighted score, never optional.
confidence: f64Native confidence.
legend: &'a IndexMap<String, String>Ordered level legend.
probabilities: &'a IndexMap<String, f64>Native probabilities.
evidence: &'a [EvidenceSpan]Supporting spans, empty if none were returned.
raw: &'a AnswerOriginal answer.
Trait Implementations§
Source§impl<'a> Clone for ScoreAnswer<'a>
impl<'a> Clone for ScoreAnswer<'a>
impl<'a> Copy for ScoreAnswer<'a>
Auto Trait Implementations§
impl<'a> Freeze for ScoreAnswer<'a>
impl<'a> RefUnwindSafe for ScoreAnswer<'a>
impl<'a> Send for ScoreAnswer<'a>
impl<'a> Sync for ScoreAnswer<'a>
impl<'a> Unpin for ScoreAnswer<'a>
impl<'a> UnsafeUnpin for ScoreAnswer<'a>
impl<'a> UnwindSafe for ScoreAnswer<'a>
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