pub struct ScoringAxis {
pub name: String,
pub weight: f64,
pub value: f64,
}Expand description
A single named scoring dimension with a weight and value.
Fields§
§name: StringHuman-readable axis name (e.g. “accuracy”, “latency”).
weight: f64Weight of this axis in the composite score (0.0 to 1.0).
value: f64Raw value for this axis (0.0 to 1.0).
Trait Implementations§
Source§impl Clone for ScoringAxis
impl Clone for ScoringAxis
Source§fn clone(&self) -> ScoringAxis
fn clone(&self) -> ScoringAxis
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 ScoringAxis
impl Debug for ScoringAxis
Source§impl<'de> Deserialize<'de> for ScoringAxis
impl<'de> Deserialize<'de> for ScoringAxis
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 ScoringAxis
impl RefUnwindSafe for ScoringAxis
impl Send for ScoringAxis
impl Sync for ScoringAxis
impl Unpin for ScoringAxis
impl UnsafeUnpin for ScoringAxis
impl UnwindSafe for ScoringAxis
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