Skip to main content

cargo_coupling/balance/
issue.rs

1use super::action::RefactoringAction;
2use super::issue_type::IssueType;
3use super::severity::Severity;
4
5/// A detected coupling issue with refactoring recommendation
6#[derive(Debug, Clone)]
7pub struct CouplingIssue {
8    /// Type of issue
9    pub issue_type: IssueType,
10    /// Severity of the issue
11    pub severity: Severity,
12    /// Source component
13    pub source: String,
14    /// Target component
15    pub target: String,
16    /// Specific description of this instance
17    pub description: String,
18    /// Concrete refactoring action to take
19    pub refactoring: RefactoringAction,
20    /// Balance score that triggered this issue
21    pub balance_score: f64,
22}