Skip to main content

ContextCaseResult

Struct ContextCaseResult 

Source
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: f64

Fraction of context items that carry a source receipt (source file or span).

§pack_size: usize

Number 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

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl Debug for ContextCaseResult

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Serialize for ContextCaseResult

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.