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§
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 Methods§
Sourcefn returned_value(&self, _column: &str) -> Option<&Value>
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".