pub struct ScoreComponent {
pub name: String,
pub score: f32,
pub weight: f32,
pub feedback: String,
pub issues: Vec<String>,
}Expand description
A single score component
Fields§
§name: StringComponent name
score: f32Score value (0.0 to 1.0)
weight: f32Weight in overall calculation (0.0 to 1.0)
feedback: StringFeedback message
issues: Vec<String>Specific issues found
Implementations§
Trait Implementations§
Source§impl Clone for ScoreComponent
impl Clone for ScoreComponent
Source§fn clone(&self) -> ScoreComponent
fn clone(&self) -> ScoreComponent
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 ScoreComponent
impl Debug for ScoreComponent
Source§impl<'de> Deserialize<'de> for ScoreComponent
impl<'de> Deserialize<'de> for ScoreComponent
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 ScoreComponent
impl RefUnwindSafe for ScoreComponent
impl Send for ScoreComponent
impl Sync for ScoreComponent
impl Unpin for ScoreComponent
impl UnwindSafe for ScoreComponent
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