pub struct SearchExplain {Show 13 fields
pub bm25: Option<f64>,
pub branches: Vec<String>,
pub name_tier: String,
pub name_coverage: f64,
pub signature_coverage: f64,
pub doc_coverage: f64,
pub kind_prior: f64,
pub path_role: f64,
pub documentation: f64,
pub test_intent: f64,
pub word_weights: Vec<(String, f64)>,
pub candidates: usize,
pub rerank_us: u128,
}Expand description
Rerank breakdown for one search hit: which recall branches admitted the row, the
rarity-weighted coverage fractions, the fixed priors as score points, the query words
with their rarity weights, and the timer over the whole candidate set.
Fields§
§bm25: Option<f64>§branches: Vec<String>§name_tier: String§name_coverage: f64§signature_coverage: f64§doc_coverage: f64§kind_prior: f64§path_role: f64§documentation: f64§test_intent: f64§word_weights: Vec<(String, f64)>§candidates: usize§rerank_us: u128Trait Implementations§
Source§impl Clone for SearchExplain
impl Clone for SearchExplain
Source§fn clone(&self) -> SearchExplain
fn clone(&self) -> SearchExplain
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 SearchExplain
impl Debug for SearchExplain
Source§impl<'de> Deserialize<'de> for SearchExplain
impl<'de> Deserialize<'de> for SearchExplain
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SearchExplain
impl PartialEq for SearchExplain
Source§impl Serialize for SearchExplain
impl Serialize for SearchExplain
impl StructuralPartialEq for SearchExplain
Auto Trait Implementations§
impl Freeze for SearchExplain
impl RefUnwindSafe for SearchExplain
impl Send for SearchExplain
impl Sync for SearchExplain
impl Unpin for SearchExplain
impl UnsafeUnpin for SearchExplain
impl UnwindSafe for SearchExplain
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more