pub struct RefactoringTarget {
pub path: PathBuf,
pub priority: f64,
pub efficiency: f64,
pub recommendation: String,
pub category: RecommendationCategory,
pub effort: EffortEstimate,
pub confidence: Confidence,
pub factors: Vec<ContributingFactor>,
pub evidence: Option<TargetEvidence>,
}Expand description
One prioritized refactoring recommendation in the health report’s
refactoring_targets section.
Fields§
§path: PathBufAbsolute file path (stripped to relative in output).
priority: f64Priority score (0–100, higher = more urgent).
efficiency: f64Efficiency score (priority / effort). Higher = better quick-win value. Surfaces low-effort, high-priority targets first.
recommendation: StringOne-line actionable recommendation.
category: RecommendationCategoryRecommendation category for tooling/filtering.
effort: EffortEstimateEstimated effort to address this target.
confidence: ConfidenceConfidence in this recommendation based on data source reliability.
factors: Vec<ContributingFactor>Contributing factors that triggered this recommendation. Empty array omitted from JSON.
evidence: Option<TargetEvidence>Structured evidence linking to specific analysis data.
Trait Implementations§
Source§impl Clone for RefactoringTarget
impl Clone for RefactoringTarget
Source§impl Debug for RefactoringTarget
impl Debug for RefactoringTarget
Source§impl<'de> Deserialize<'de> for RefactoringTarget
impl<'de> Deserialize<'de> for RefactoringTarget
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>,
Source§impl From<RefactoringTarget> for RefactoringTargetFinding
impl From<RefactoringTarget> for RefactoringTargetFinding
Source§fn from(target: RefactoringTarget) -> Self
fn from(target: RefactoringTarget) -> Self
Convenience conversion: wrap a refactoring target with an empty
actions list. Used by tests and fixture builders. Production
code should call RefactoringTargetFinding::with_actions so
the wire shape carries the typed actions.