pub struct TrustFactor {
pub name: String,
pub weight: f64,
pub score: f64,
pub trend: f64,
}Expand description
A factor contributing to the trust score.
Fields§
§name: StringFactor name.
weight: f64Weight in trust calculation (0.0-1.0).
score: f64Current score for this factor (0.0-1.0).
trend: f64Trend (positive = improving).
Trait Implementations§
Source§impl Clone for TrustFactor
impl Clone for TrustFactor
Source§fn clone(&self) -> TrustFactor
fn clone(&self) -> TrustFactor
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 TrustFactor
impl Debug for TrustFactor
Source§impl<'de> Deserialize<'de> for TrustFactor
impl<'de> Deserialize<'de> for TrustFactor
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 TrustFactor
impl RefUnwindSafe for TrustFactor
impl Send for TrustFactor
impl Sync for TrustFactor
impl Unpin for TrustFactor
impl UnsafeUnpin for TrustFactor
impl UnwindSafe for TrustFactor
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