pub struct JsonExactMatchScorer;Expand description
Deterministic JSON equality scorer.
Trait Implementations§
Source§impl Clone for JsonExactMatchScorer
impl Clone for JsonExactMatchScorer
Source§fn clone(&self) -> JsonExactMatchScorer
fn clone(&self) -> JsonExactMatchScorer
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 moreimpl Copy for JsonExactMatchScorer
Source§impl Debug for JsonExactMatchScorer
impl Debug for JsonExactMatchScorer
Source§impl Default for JsonExactMatchScorer
impl Default for JsonExactMatchScorer
Source§fn default() -> JsonExactMatchScorer
fn default() -> JsonExactMatchScorer
Returns the “default value” for a type. Read more
Source§impl EvaluationScorer for JsonExactMatchScorer
impl EvaluationScorer for JsonExactMatchScorer
Source§fn score(
&self,
case: EvaluationCase,
output: EvaluationOutput,
) -> EvaluationFuture<Result<ScoreValue, EvaluationError>>
fn score( &self, case: EvaluationCase, output: EvaluationOutput, ) -> EvaluationFuture<Result<ScoreValue, EvaluationError>>
Scores one target output.
Auto Trait Implementations§
impl Freeze for JsonExactMatchScorer
impl RefUnwindSafe for JsonExactMatchScorer
impl Send for JsonExactMatchScorer
impl Sync for JsonExactMatchScorer
impl Unpin for JsonExactMatchScorer
impl UnsafeUnpin for JsonExactMatchScorer
impl UnwindSafe for JsonExactMatchScorer
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