pub struct TargetFacts {Show 13 fields
pub target: TargetId,
pub confidence: f32,
pub valid_from: Timestamp,
pub valid_to: Timestamp,
pub recorded_at: Timestamp,
pub retracted_at: Option<Timestamp>,
pub trust: TrustTier,
pub status: BeliefStatus,
pub predicate: String,
pub salience: f64,
pub distinct_episodes: u32,
pub channels: Vec<ChannelRank>,
pub channel_scores: Vec<f64>,
}Expand description
Per-target facts the store has fetched for a candidate. These are the
inputs rank filters against — folding happens in the store, applying
happens in core.
Fields§
§target: TargetId§confidence: f32§valid_from: Timestamp§valid_to: Timestamp§recorded_at: Timestamp§retracted_at: Option<Timestamp>§trust: TrustTier§status: BeliefStatus§predicate: String§salience: f64§distinct_episodes: u32§channels: Vec<ChannelRank>§channel_scores: Vec<f64>Backing channel scores (BM25, KNN, etc.) — used by fusion only.
Trait Implementations§
Source§impl Clone for TargetFacts
impl Clone for TargetFacts
Source§fn clone(&self) -> TargetFacts
fn clone(&self) -> TargetFacts
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 TargetFacts
impl Debug for TargetFacts
Source§impl<'de> Deserialize<'de> for TargetFacts
impl<'de> Deserialize<'de> for TargetFacts
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
Auto Trait Implementations§
impl Freeze for TargetFacts
impl RefUnwindSafe for TargetFacts
impl Send for TargetFacts
impl Sync for TargetFacts
impl Unpin for TargetFacts
impl UnsafeUnpin for TargetFacts
impl UnwindSafe for TargetFacts
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