pub type DuplicationOutput = DupesOutput<DupesReportPayload, DuplicationGroup>;Expand description
Concrete duplication output contract returned by typed programmatic runs.
Aliased Type§
pub struct DuplicationOutput {
pub schema_version: SchemaVersion,
pub version: ToolVersion,
pub elapsed_ms: ElapsedMs,
pub report: DupesReportPayload,
pub grouped_by: Option<GroupByMode>,
pub total_issues: Option<usize>,
pub groups: Option<Vec<DuplicationGroup>>,
pub meta: Option<Meta>,
pub workspace_diagnostics: Vec<WorkspaceDiagnostic>,
pub next_steps: Vec<NextStep>,
}Fields§
§schema_version: SchemaVersionDuplication output schema version.
version: ToolVersionFallow CLI version that produced this output.
elapsed_ms: ElapsedMsWall-clock analysis duration in milliseconds.
report: DupesReportPayloadDuplication report body, flattened into the envelope root.
grouped_by: Option<GroupByMode>Grouping mode when --group-by was passed.
total_issues: Option<usize>Total finding count across all groups; present only in grouped output.
groups: Option<Vec<DuplicationGroup>>Grouped findings; present only in grouped output.
meta: Option<Meta>_meta block with metric / rule definitions, emitted when --explain
is passed (always present in MCP responses).
workspace_diagnostics: Vec<WorkspaceDiagnostic>Workspace-discovery and source-discovery diagnostics for the run
(issue #473). See CheckOutput::workspace_diagnostics for the full
contract; the same list is repeated on each top-level command’s
envelope so single-command consumers see it without having to look at
a separate top-level field. A standalone fallow dupes run has no
dead-code analyze pass, so the two analysis-stage kinds never appear
here.
next_steps: Vec<NextStep>Read-only follow-up commands computed from this run’s findings. See
CheckOutput::next_steps for the contract.