pub struct ScoredRecord {
pub record: ExperimentRecord,
pub score: f64,
pub components: ScoreComponents,
}Expand description
A record and why it came back.
Fields§
§record: ExperimentRecordThe matching record itself.
score: f64Composite score in [0, 1].
components: ScoreComponentsThe four terms the score was added from.
Implementations§
Trait Implementations§
Source§impl Clone for ScoredRecord
impl Clone for ScoredRecord
Source§fn clone(&self) -> ScoredRecord
fn clone(&self) -> ScoredRecord
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 ScoredRecord
impl Debug for ScoredRecord
Source§impl<'de> Deserialize<'de> for ScoredRecord
impl<'de> Deserialize<'de> for ScoredRecord
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 ScoredRecord
impl RefUnwindSafe for ScoredRecord
impl Send for ScoredRecord
impl Sync for ScoredRecord
impl Unpin for ScoredRecord
impl UnsafeUnpin for ScoredRecord
impl UnwindSafe for ScoredRecord
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