Skip to main content

Scorer

Trait Scorer 

Source
pub trait Scorer:
    Send
    + Sync
    + 'static {
    // Required method
    fn score(&self, expected: &Value, actual: &Value) -> ScorerOutcome;
}
Expand description

Sync scorer — pure-CPU comparators (substring match, JSON shape, regex, etc.). Most scorers should implement this.

Required Methods§

Source

fn score(&self, expected: &Value, actual: &Value) -> ScorerOutcome

Implementors§