pub struct CaseResult {Show 14 fields
pub query: String,
pub garbage: bool,
pub top: Option<String>,
pub expected_partition: Option<String>,
pub top_partition: Option<String>,
pub partition_ok: Option<bool>,
pub top_confidence: Option<Confidence>,
pub min_confidence: Option<String>,
pub expected_confidence: Option<String>,
pub confidence_ok: Option<bool>,
pub relation_matches: Vec<RelationMatch>,
pub missing_relation_matches: Vec<RelationMatchExpectation>,
pub rank: Option<usize>,
pub ok: bool,
}Expand description
Per-case outcome, for a readable report.
Fields§
§query: String§garbage: bool§top: Option<String>The top-ranked hit id, if any.
expected_partition: Option<String>§top_partition: Option<String>§partition_ok: Option<bool>§top_confidence: Option<Confidence>§min_confidence: Option<String>§expected_confidence: Option<String>§confidence_ok: Option<bool>§relation_matches: Vec<RelationMatch>Structured relation reasons attached to the top hit.
missing_relation_matches: Vec<RelationMatchExpectation>Required relation reasons not found on the top hit.
rank: Option<usize>1-based rank of the first expected id within the returned hits (clean cases only).
ok: boolClean: top hit was expected. Garbage: query was rejected.
Trait Implementations§
Source§impl Clone for CaseResult
impl Clone for CaseResult
Source§fn clone(&self) -> CaseResult
fn clone(&self) -> CaseResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CaseResult
impl Debug for CaseResult
Auto Trait Implementations§
impl Freeze for CaseResult
impl RefUnwindSafe for CaseResult
impl Send for CaseResult
impl Sync for CaseResult
impl Unpin for CaseResult
impl UnsafeUnpin for CaseResult
impl UnwindSafe for CaseResult
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