pub struct DuplicationProgrammaticOutput {
pub output: DuplicationOutput,
pub root: PathBuf,
pub threshold: f64,
pub telemetry_analysis_run_id: Option<String>,
}Expand description
Typed programmatic duplication output before JSON serialization.
Fields§
§output: DuplicationOutputTyped duplication envelope produced by the run.
root: PathBufProject root used when serializing stable JSON paths.
threshold: f64Maximum allowed duplication percentage from the resolved config; 0 disables the percentage gate.
telemetry_analysis_run_id: Option<String>Analysis run id stamped into telemetry metadata when present.
Implementations§
Source§impl DuplicationProgrammaticOutput
impl DuplicationProgrammaticOutput
Sourcepub const fn report(&self) -> &DupesReportPayload
pub const fn report(&self) -> &DupesReportPayload
Typed duplication report payload retained by this run.
Sourcepub fn clone_groups(&self) -> &[CloneGroupFinding]
pub fn clone_groups(&self) -> &[CloneGroupFinding]
Clone groups retained by this run, with typed actions and fingerprints.
Sourcepub fn clone_families(&self) -> &[CloneFamilyFinding]
pub fn clone_families(&self) -> &[CloneFamilyFinding]
Clone families retained by this run, with nested typed clone groups.
Sourcepub fn groups(&self) -> Option<&[DuplicationGroup]>
pub fn groups(&self) -> Option<&[DuplicationGroup]>
Grouped duplication buckets when a grouping mode was used.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DuplicationProgrammaticOutput
impl RefUnwindSafe for DuplicationProgrammaticOutput
impl Send for DuplicationProgrammaticOutput
impl Sync for DuplicationProgrammaticOutput
impl Unpin for DuplicationProgrammaticOutput
impl UnsafeUnpin for DuplicationProgrammaticOutput
impl UnwindSafe for DuplicationProgrammaticOutput
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more