pub struct ScoreModel {
pub schema_version: SchemaVersion,
pub dimensions: Vec<ScoreDimension>,
pub thresholds: ScoreThresholds,
}Expand description
The scoring model defines how repository health is measured.
Each dimension contributes a weighted score. Dimensions can be required (must pass), scored (contributes to total), or advisory (informational only).
Stored at specs/scoring/model.toml.
Fields§
§schema_version: SchemaVersion§dimensions: Vec<ScoreDimension>§thresholds: ScoreThresholdsImplementations§
Source§impl ScoreModel
impl ScoreModel
Sourcepub fn default_model() -> Self
pub fn default_model() -> Self
Create a default scoring model with standard dimensions.
Trait Implementations§
Source§impl Clone for ScoreModel
impl Clone for ScoreModel
Source§fn clone(&self) -> ScoreModel
fn clone(&self) -> ScoreModel
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 ScoreModel
impl Debug for ScoreModel
Source§impl<'de> Deserialize<'de> for ScoreModel
impl<'de> Deserialize<'de> for ScoreModel
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 ScoreModel
impl RefUnwindSafe for ScoreModel
impl Send for ScoreModel
impl Sync for ScoreModel
impl Unpin for ScoreModel
impl UnsafeUnpin for ScoreModel
impl UnwindSafe for ScoreModel
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