pub struct InspectReport {Show 14 fields
pub schema_version: u8,
pub audit: Audit,
pub status: Status,
pub complete: bool,
pub policy: Option<PolicyReport>,
pub scope: Option<ScopeReport>,
pub project: Option<ProjectReport>,
pub toolchain: ToolchainReport,
pub scan: ScanReport,
pub diagnostics: Vec<Diagnostic>,
pub delta: Option<DeltaReport>,
pub errors: Vec<ReportError>,
pub summary: Summary,
pub gate: GateReport,
}Fields§
§schema_version: u8§audit: Audit§status: Status§complete: bool§policy: Option<PolicyReport>§scope: Option<ScopeReport>§project: Option<ProjectReport>§toolchain: ToolchainReport§scan: ScanReport§diagnostics: Vec<Diagnostic>§delta: Option<DeltaReport>§errors: Vec<ReportError>§summary: Summary§gate: GateReportImplementations§
Source§impl InspectReport
impl InspectReport
Sourcepub fn is_valid(&self) -> bool
pub fn is_valid(&self) -> bool
A report is publishable only when its counts agree.
summary describes the whole set of diagnostics of the report. audit
describes the score scope: the complete report, or the introduced
diagnostics alone when a delta is present. Both quantities, distinct
diagnostics and occurrences, are checked separately.
Trait Implementations§
Source§impl Clone for InspectReport
impl Clone for InspectReport
Source§fn clone(&self) -> InspectReport
fn clone(&self) -> InspectReport
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 InspectReport
impl Debug for InspectReport
impl Eq for InspectReport
Source§impl PartialEq for InspectReport
impl PartialEq for InspectReport
Source§impl Serialize for InspectReport
impl Serialize for InspectReport
impl StructuralPartialEq for InspectReport
Auto Trait Implementations§
impl Freeze for InspectReport
impl RefUnwindSafe for InspectReport
impl Send for InspectReport
impl Sync for InspectReport
impl Unpin for InspectReport
impl UnsafeUnpin for InspectReport
impl UnwindSafe for InspectReport
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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