pub struct CodeHealth {
pub score: u32,
pub grade: String,
pub large_files_touched: usize,
pub avg_file_size: usize,
pub complexity_indicator: ComplexityIndicator,
pub warnings: Vec<HealthWarning>,
}Expand description
Code health indicators for DevEx.
Fields§
§score: u32Overall health score (0-100).
grade: StringHealth grade (A-F).
large_files_touched: usizeNumber of large files (>500 lines) being changed.
avg_file_size: usizeAverage file size in changed files.
complexity_indicator: ComplexityIndicatorComplexity indicator based on file patterns.
warnings: Vec<HealthWarning>Files with potential issues.
Trait Implementations§
Source§impl Clone for CodeHealth
impl Clone for CodeHealth
Source§fn clone(&self) -> CodeHealth
fn clone(&self) -> CodeHealth
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 CodeHealth
impl Debug for CodeHealth
Source§impl<'de> Deserialize<'de> for CodeHealth
impl<'de> Deserialize<'de> for CodeHealth
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 CodeHealth
impl RefUnwindSafe for CodeHealth
impl Send for CodeHealth
impl Sync for CodeHealth
impl Unpin for CodeHealth
impl UnsafeUnpin for CodeHealth
impl UnwindSafe for CodeHealth
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