pub struct LintFileReport { /* private fields */ }Expand description
One source file and its lint-command evidence.
Implementations§
Source§impl LintFileReport
impl LintFileReport
Sourcepub fn new(
path: impl Into<String>,
input: InputIdentity,
rig: RigInfo,
prediction_provenance: Option<PredictionProvenanceV1>,
checks: Vec<CheckEvaluation>,
measurements: MeasurementContract,
) -> Result<Self, OutputContractError>
pub fn new( path: impl Into<String>, input: InputIdentity, rig: RigInfo, prediction_provenance: Option<PredictionProvenanceV1>, checks: Vec<CheckEvaluation>, measurements: MeasurementContract, ) -> Result<Self, OutputContractError>
Construct and validate a lint file report with one record per catalog check.
§Errors
Returns OutputContractError when the file exceeds an output-v10
bound or prediction evidence does not bind to the same file/provenance.
Sourcepub fn input(&self) -> &InputIdentity
pub fn input(&self) -> &InputIdentity
Immutable identity of the source bytes used to produce this record.
Sourcepub fn checks(&self) -> &[CheckEvaluation]
pub fn checks(&self) -> &[CheckEvaluation]
Check records in catalog order.
Sourcepub const fn prediction_provenance(&self) -> Option<&PredictionProvenanceV1>
pub const fn prediction_provenance(&self) -> Option<&PredictionProvenanceV1>
File-scoped prediction provenance, or None for engine-neutral lint.
Sourcepub fn measurements(&self) -> &MeasurementContract
pub fn measurements(&self) -> &MeasurementContract
Nested measurement evidence.
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