pub struct CodeQualityMetrics {
pub avg_complexity: f32,
pub estimated_coverage: f32,
pub style_score: f32,
pub documentation_score: f32,
pub error_handling_score: f32,
pub total_lines: usize,
pub comment_lines: usize,
pub function_count: usize,
pub public_function_count: usize,
}Expand description
Code quality metrics
Fields§
§avg_complexity: f32Average cyclomatic complexity
estimated_coverage: f32Estimated test coverage percentage
style_score: f32Code style score (0.0 to 1.0)
documentation_score: f32Documentation score (0.0 to 1.0)
error_handling_score: f32Error handling score (0.0 to 1.0)
total_lines: usizeTotal lines of code
comment_lines: usizeLines of comments
function_count: usizeNumber of functions/methods
public_function_count: usizeNumber of public functions/methods
Trait Implementations§
Source§impl Clone for CodeQualityMetrics
impl Clone for CodeQualityMetrics
Source§fn clone(&self) -> CodeQualityMetrics
fn clone(&self) -> CodeQualityMetrics
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 CodeQualityMetrics
impl Debug for CodeQualityMetrics
Source§impl Default for CodeQualityMetrics
impl Default for CodeQualityMetrics
Source§impl<'de> Deserialize<'de> for CodeQualityMetrics
impl<'de> Deserialize<'de> for CodeQualityMetrics
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 CodeQualityMetrics
impl RefUnwindSafe for CodeQualityMetrics
impl Send for CodeQualityMetrics
impl Sync for CodeQualityMetrics
impl Unpin for CodeQualityMetrics
impl UnwindSafe for CodeQualityMetrics
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