pub struct ContextCaseResult {Show 33 fields
pub query: String,
pub expected_focus_route: Option<String>,
pub expected_focus_routes: Vec<String>,
pub focus_route: String,
pub expected_compound_primary: Option<String>,
pub compound_primary: Option<String>,
pub vocabulary_gap_terms: Vec<String>,
pub expected_no_vocabulary_gap: Option<bool>,
pub editable_vocab_targets: Vec<String>,
pub non_editable_vocab_targets: Vec<String>,
pub omitted_context: Vec<ContextOmissionExpectation>,
pub omitted_compound_anchors: Vec<ContextOmissionExpectation>,
pub vocabulary_gap_ok: Option<bool>,
pub no_vocabulary_gap_ok: Option<bool>,
pub editable_vocab_targets_ok: Option<bool>,
pub non_editable_vocab_targets_ok: Option<bool>,
pub omitted_context_ok: Option<bool>,
pub omitted_compound_anchors_ok: Option<bool>,
pub expected_partition: Option<String>,
pub focus_route_partition: Option<String>,
pub partition_ok: Option<bool>,
pub focus_route_ok: Option<bool>,
pub compound_primary_ok: Option<bool>,
pub recall: Option<f64>,
pub noise: Option<f64>,
pub receipt_coverage: f64,
pub pack_size: usize,
pub edge_recall: Option<f64>,
pub missing: Vec<String>,
pub leaked: Vec<String>,
pub missing_edges: Vec<ContextEdgeExpectation>,
pub missing_omitted_context: Vec<ContextOmissionExpectation>,
pub missing_omitted_compound_anchors: Vec<ContextOmissionExpectation>,
}Expand description
Per-case context outcome.
Fields§
§query: String§expected_focus_route: Option<String>§expected_focus_routes: Vec<String>§focus_route: String§expected_compound_primary: Option<String>§compound_primary: Option<String>§vocabulary_gap_terms: Vec<String>§expected_no_vocabulary_gap: Option<bool>§editable_vocab_targets: Vec<String>§non_editable_vocab_targets: Vec<String>§omitted_context: Vec<ContextOmissionExpectation>§omitted_compound_anchors: Vec<ContextOmissionExpectation>§vocabulary_gap_ok: Option<bool>§no_vocabulary_gap_ok: Option<bool>§editable_vocab_targets_ok: Option<bool>§non_editable_vocab_targets_ok: Option<bool>§omitted_context_ok: Option<bool>§omitted_compound_anchors_ok: Option<bool>§expected_partition: Option<String>§focus_route_partition: Option<String>§partition_ok: Option<bool>§focus_route_ok: Option<bool>§compound_primary_ok: Option<bool>§recall: Option<f64>Fraction of context_must ids present in the activated context (None if none judged).
noise: Option<f64>Fraction of context_must_not ids present (noise — lower is better; None if none judged).
receipt_coverage: f64Fraction of context items that carry a source receipt (source file or span).
pack_size: usizeNumber of node ids in the context pack.
edge_recall: Option<f64>Fraction of context_edges_must present in the focused edge set.
missing: Vec<String>§leaked: Vec<String>§missing_edges: Vec<ContextEdgeExpectation>§missing_omitted_context: Vec<ContextOmissionExpectation>§missing_omitted_compound_anchors: Vec<ContextOmissionExpectation>Trait Implementations§
Source§impl Clone for ContextCaseResult
impl Clone for ContextCaseResult
Source§fn clone(&self) -> ContextCaseResult
fn clone(&self) -> ContextCaseResult
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 ContextCaseResult
impl Debug for ContextCaseResult
Auto Trait Implementations§
impl Freeze for ContextCaseResult
impl RefUnwindSafe for ContextCaseResult
impl Send for ContextCaseResult
impl Sync for ContextCaseResult
impl Unpin for ContextCaseResult
impl UnsafeUnpin for ContextCaseResult
impl UnwindSafe for ContextCaseResult
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