pub struct LintFileReport { /* private fields */ }Expand description
Current output-v15 lint file evidence with correlated V3 or V4 prediction provenance.
Implementations§
Source§impl LintFileReport
impl LintFileReport
Sourcepub fn new(
path: impl Into<String>,
input: InputIdentity,
rig: RigInfo,
prediction_provenance: Option<PredictionProvenanceV3>,
checks: Vec<CheckEvaluation>,
measurements: MeasurementContract,
) -> Result<Self, OutputContractError>
pub fn new( path: impl Into<String>, input: InputIdentity, rig: RigInfo, prediction_provenance: Option<PredictionProvenanceV3>, checks: Vec<CheckEvaluation>, measurements: MeasurementContract, ) -> Result<Self, OutputContractError>
Construct a legacy-V3 lint file report inside output-v15.
Sourcepub const fn prediction_provenance(&self) -> Option<&PredictionProvenanceV3>
pub const fn prediction_provenance(&self) -> Option<&PredictionProvenanceV3>
V3 prediction provenance, or None for engine-neutral lint.
Sourcepub fn new_v4(
path: impl Into<String>,
input: InputIdentity,
rig: RigInfo,
prediction_provenance: Option<PredictionProvenanceV4>,
checks: Vec<CheckEvaluation>,
measurements: MeasurementContract,
) -> Result<Self, OutputContractError>
pub fn new_v4( path: impl Into<String>, input: InputIdentity, rig: RigInfo, prediction_provenance: Option<PredictionProvenanceV4>, checks: Vec<CheckEvaluation>, measurements: MeasurementContract, ) -> Result<Self, OutputContractError>
Construct a result-bearing V4 lint file report.
Sourcepub const fn prediction_provenance_v4(&self) -> Option<&PredictionProvenanceV4>
pub const fn prediction_provenance_v4(&self) -> Option<&PredictionProvenanceV4>
V4 prediction provenance, when this file uses revision 4.
Sourcepub fn input(&self) -> &InputIdentity
pub fn input(&self) -> &InputIdentity
Immutable identity of the source bytes used to produce this record.
Sourcepub fn measurements(&self) -> &MeasurementContract
pub fn measurements(&self) -> &MeasurementContract
Nested measurement evidence.
Sourcepub fn checks(&self) -> &[CheckEvaluation]
pub fn checks(&self) -> &[CheckEvaluation]
Catalog-ordered check records.
Trait Implementations§
Source§impl Clone for LintFileReport
impl Clone for LintFileReport
Source§fn clone(&self) -> LintFileReport
fn clone(&self) -> LintFileReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LintFileReport
impl Debug for LintFileReport
Auto Trait Implementations§
impl Freeze for LintFileReport
impl RefUnwindSafe for LintFileReport
impl Send for LintFileReport
impl Sync for LintFileReport
impl Unpin for LintFileReport
impl UnsafeUnpin for LintFileReport
impl UnwindSafe for LintFileReport
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