pub struct ResolutionWeights {
pub confidence: f64,
pub corroboration: f64,
pub recency: f64,
pub validation: f64,
}Expand description
Weights for the resolution formula. Defaults come from P2-3.
Fields§
§confidence: f64§corroboration: f64§recency: f64§validation: f64Trait Implementations§
Source§impl Clone for ResolutionWeights
impl Clone for ResolutionWeights
Source§fn clone(&self) -> ResolutionWeights
fn clone(&self) -> ResolutionWeights
Returns a duplicate of the value. Read more
1.0.0 · 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 ResolutionWeights
impl Debug for ResolutionWeights
Source§impl<'de> Deserialize<'de> for ResolutionWeights
impl<'de> Deserialize<'de> for ResolutionWeights
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ResolutionWeights, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ResolutionWeights, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ResolutionWeights
impl PartialEq for ResolutionWeights
Source§impl Serialize for ResolutionWeights
impl Serialize for ResolutionWeights
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ResolutionWeights
Auto Trait Implementations§
impl Freeze for ResolutionWeights
impl RefUnwindSafe for ResolutionWeights
impl Send for ResolutionWeights
impl Sync for ResolutionWeights
impl Unpin for ResolutionWeights
impl UnsafeUnpin for ResolutionWeights
impl UnwindSafe for ResolutionWeights
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