pub struct FileComplexity {
pub path: String,
pub module: String,
pub function_count: usize,
pub max_function_length: usize,
pub cyclomatic_complexity: usize,
pub cognitive_complexity: Option<usize>,
pub max_nesting: Option<usize>,
pub risk_level: ComplexityRisk,
pub functions: Option<Vec<FunctionComplexityDetail>>,
}Fields§
§path: String§module: String§function_count: usize§max_function_length: usize§cyclomatic_complexity: usize§cognitive_complexity: Option<usize>Cognitive complexity for this file.
max_nesting: Option<usize>Maximum nesting depth in this file.
risk_level: ComplexityRisk§functions: Option<Vec<FunctionComplexityDetail>>Function-level complexity details (only when –detail-functions is used).
Trait Implementations§
Source§impl Clone for FileComplexity
impl Clone for FileComplexity
Source§fn clone(&self) -> FileComplexity
fn clone(&self) -> FileComplexity
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 FileComplexity
impl Debug for FileComplexity
Source§impl<'de> Deserialize<'de> for FileComplexity
impl<'de> Deserialize<'de> for FileComplexity
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 FileComplexity
impl RefUnwindSafe for FileComplexity
impl Send for FileComplexity
impl Sync for FileComplexity
impl Unpin for FileComplexity
impl UnsafeUnpin for FileComplexity
impl UnwindSafe for FileComplexity
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