pub struct ScoreDimension {
pub id: String,
pub label: String,
pub weight: u32,
pub category: DimensionCategory,
pub source: ScoreSource,
}Expand description
A single scoring dimension.
Fields§
§id: StringUnique identifier, e.g. “correctness”, “conformance-coverage”.
label: StringHuman-readable label.
weight: u32Weight in the total score calculation.
category: DimensionCategoryWhether this dimension is required, scored, or advisory.
source: ScoreSourceWhere the dimension’s value comes from.
Trait Implementations§
Source§impl Clone for ScoreDimension
impl Clone for ScoreDimension
Source§fn clone(&self) -> ScoreDimension
fn clone(&self) -> ScoreDimension
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 ScoreDimension
impl Debug for ScoreDimension
Source§impl<'de> Deserialize<'de> for ScoreDimension
impl<'de> Deserialize<'de> for ScoreDimension
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 ScoreDimension
impl RefUnwindSafe for ScoreDimension
impl Send for ScoreDimension
impl Sync for ScoreDimension
impl Unpin for ScoreDimension
impl UnsafeUnpin for ScoreDimension
impl UnwindSafe for ScoreDimension
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