pub struct JsonReportEnvelope {
pub schema_version: JsonReportSchemaVersion,
pub scan_status: ScanCompletionStatus,
pub metadata: Option<ScanReportMetadata>,
pub coverage_gap_summary: Vec<JsonReportCoverageGap>,
pub findings: Vec<VerifiedFinding>,
pub correlations: Vec<CorrelatedCredential>,
pub access_targets: Option<AccessTargetReport>,
}Expand description
Versioned machine-readable JSON report.
A reader must reject an unsupported major and may accept any minor
under a supported major because minor revisions only add optional fields.
Fields§
§schema_version: JsonReportSchemaVersionVersion marker used to select the reader contract.
scan_status: ScanCompletionStatusTerminal state for the detached artifact, independent of process exit status.
metadata: Option<ScanReportMetadata>Optional scan-wide metadata supplied by the producer.
coverage_gap_summary: Vec<JsonReportCoverageGap>Non-zero source or scanner coverage gaps observed during the scan.
findings: Vec<VerifiedFinding>Findings in the same redacted shape used by the legacy array.
correlations: Vec<CorrelatedCredential>Cross-file credential correlations, present only when the producer ran with correlation enabled. Absent, not empty, otherwise, so a report from a default scan is byte-identical to one from before minor 9.
access_targets: Option<AccessTargetReport>Access targets (“doors”) derived from the findings, present only when the producer ran with access-target association enabled. Absent, not empty, otherwise, so a report from a default scan is byte-identical to one from before minor 10.
Implementations§
Source§impl JsonReportEnvelope
impl JsonReportEnvelope
Sourcepub fn parse(input: &str) -> Result<Self, ReportError>
pub fn parse(input: &str) -> Result<Self, ReportError>
Parse and validate a versioned JSON report.
Trait Implementations§
Source§impl Clone for JsonReportEnvelope
impl Clone for JsonReportEnvelope
Source§fn clone(&self) -> JsonReportEnvelope
fn clone(&self) -> JsonReportEnvelope
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for JsonReportEnvelope
impl Debug for JsonReportEnvelope
Source§impl<'de> Deserialize<'de> for JsonReportEnvelope
impl<'de> Deserialize<'de> for JsonReportEnvelope
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for JsonReportEnvelope
impl RefUnwindSafe for JsonReportEnvelope
impl Send for JsonReportEnvelope
impl Sync for JsonReportEnvelope
impl Unpin for JsonReportEnvelope
impl UnsafeUnpin for JsonReportEnvelope
impl UnwindSafe for JsonReportEnvelope
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> ⓘ
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> ⓘ
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