pub struct DriftReport {
pub room: String,
pub baseline_version: String,
pub distance: f32,
pub threshold: f32,
pub exceeded: bool,
}Expand description
Result of a baseline-drift comparison (RfMemoryStore::compute_drift).
Fields§
§room: StringRoom the baseline belongs to.
baseline_version: StringBaseline version that was compared against.
distance: f32Cosine distance 1 - cosine_similarity(baseline, current) in [0.0, 2.0].
threshold: f32Threshold the distance was compared against.
exceeded: boolWhether distance > threshold.
Trait Implementations§
Source§impl Clone for DriftReport
impl Clone for DriftReport
Source§fn clone(&self) -> DriftReport
fn clone(&self) -> DriftReport
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 DriftReport
impl Debug for DriftReport
Source§impl<'de> Deserialize<'de> for DriftReport
impl<'de> Deserialize<'de> for DriftReport
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
Source§impl PartialEq for DriftReport
impl PartialEq for DriftReport
Source§fn eq(&self, other: &DriftReport) -> bool
fn eq(&self, other: &DriftReport) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DriftReport
impl Serialize for DriftReport
impl StructuralPartialEq for DriftReport
Auto Trait Implementations§
impl Freeze for DriftReport
impl RefUnwindSafe for DriftReport
impl Send for DriftReport
impl Sync for DriftReport
impl Unpin for DriftReport
impl UnsafeUnpin for DriftReport
impl UnwindSafe for DriftReport
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