Skip to main content

ScoringFeatureSource

Trait ScoringFeatureSource 

Source
pub trait ScoringFeatureSource {
    // Required methods
    fn search_score(&self) -> Option<f64>;
    fn graph_seed_score(&self) -> Option<f64>;
    fn hop_distance(&self) -> Option<usize>;
    fn numeric_property(&self, property: &str) -> Option<f64>;
    fn timestamp_millis(&self, property: &str) -> Option<u64>;

    // Provided method
    fn returned_value(&self, _column: &str) -> Option<&Value> { ... }
}
Expand description

Feature values the engine can supply for one candidate.

Required Methods§

Source

fn search_score(&self) -> Option<f64>

Source

fn graph_seed_score(&self) -> Option<f64>

Source

fn hop_distance(&self) -> Option<usize>

Source

fn numeric_property(&self, property: &str) -> Option<f64>

Source

fn timestamp_millis(&self, property: &str) -> Option<u64>

Provided Methods§

Source

fn returned_value(&self, _column: &str) -> Option<&Value>

Borrowed, explicitly returned metadata for a host’s cohort policy, such as an exact reason/tie key. It does not establish retrieval provenance.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§