pub struct ComponentRollup {
pub component: String,
pub class_worst_function: String,
pub class_cyclomatic: u16,
pub class_cognitive: u16,
pub template_path: PathBuf,
pub template_cyclomatic: u16,
pub template_cognitive: u16,
}Expand description
Component-level aggregate attached to a template complexity finding, pairing the template’s scores with the worst class-side function.
Fields§
§component: StringComponent name.
class_worst_function: StringName of the worst-scoring function in the component class.
class_cyclomatic: u16Cyclomatic complexity of that worst class function.
class_cognitive: u16Cognitive complexity of that worst class function.
template_path: PathBufTemplate file path relative to the project root.
template_cyclomatic: u16Cyclomatic complexity of the template.
template_cognitive: u16Cognitive complexity of the template.
Trait Implementations§
Source§impl Clone for ComponentRollup
impl Clone for ComponentRollup
Source§impl Debug for ComponentRollup
impl Debug for ComponentRollup
Source§impl<'de> Deserialize<'de> for ComponentRollup
impl<'de> Deserialize<'de> for ComponentRollup
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 ComponentRollup
impl RefUnwindSafe for ComponentRollup
impl Send for ComponentRollup
impl Sync for ComponentRollup
impl Unpin for ComponentRollup
impl UnsafeUnpin for ComponentRollup
impl UnwindSafe for ComponentRollup
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