pub struct ConfidenceFactors {Show 16 fields
pub attribution: Attribution,
pub attribution_multiplier: f64,
pub verified: bool,
pub verified_by: Option<String>,
pub verification_multiplier: f64,
pub age_days: i64,
pub freshness_multiplier: f64,
pub deprecation: bool,
pub deprecation_multiplier: f64,
pub language_target_query: Option<LanguageTargetQueryFactor>,
pub language_targets_chunk: Vec<LanguageTarget>,
pub version_match_multiplier: f64,
pub version_match_class: Option<&'static str>,
pub version_distance: Option<u32>,
pub relevance_source: RelevanceSource,
pub relevance_multiplier: f64,
}Expand description
Per-factor breakdown of a result’s trust + confidence, rich enough to write a one-sentence provenance explanation without further API calls (#12).
Fields§
§attribution: AttributionSource attribution that drove the dominant trust multiplier.
attribution_multiplier: f64The attribution multiplier applied.
verified: boolWhether the content was verified.
verified_by: Option<String>Who verified it, if recorded.
verification_multiplier: f64The verification multiplier applied.
age_days: i64Age of the content in whole days (from source_modified_at, else the
source-version ingested_at).
freshness_multiplier: f64The exponential freshness-decay multiplier applied.
deprecation: boolWhether the content is flagged deprecated.
deprecation_multiplier: f64The deprecation multiplier applied (1.0 when not deprecated).
language_target_query: Option<LanguageTargetQueryFactor>The query-side language target, when one was supplied.
language_targets_chunk: Vec<LanguageTarget>The chunk’s declared language targets.
version_match_multiplier: f64The version-match multiplier applied.
version_match_class: Option<&'static str>Match class, present only when the request carried a version filter.
version_distance: Option<u32>Near-miss component distance, when applicable.
relevance_source: RelevanceSourceWhich relevance term fed the blend.
relevance_multiplier: f64The normalized relevance term used in the blend.
Trait Implementations§
Source§impl Clone for ConfidenceFactors
impl Clone for ConfidenceFactors
Source§fn clone(&self) -> ConfidenceFactors
fn clone(&self) -> ConfidenceFactors
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ConfidenceFactors
impl Debug for ConfidenceFactors
Source§impl PartialEq for ConfidenceFactors
impl PartialEq for ConfidenceFactors
Source§fn eq(&self, other: &ConfidenceFactors) -> bool
fn eq(&self, other: &ConfidenceFactors) -> bool
self and other values to be equal, and is used by ==.