pub struct NormalizedReport {
pub schema: String,
pub analyzer: String,
pub analyzer_version: String,
pub started_at: String,
pub ended_at: String,
pub exit_status: i32,
pub rules_digest: Option<String>,
pub image_digest: Option<String>,
pub advisory_db: Option<AdvisoryDb>,
pub source: SourceIdentity,
pub findings: Vec<ReportFinding>,
}Expand description
A normalized analyzer report — the interchange format roteiro security ingest consumes and every analyzer adapter emits.
Unknown fields are not rejected: the schema tag carries versioning, so a producer may add diagnostics without breaking older readers. Everything the evidence chain needs is required.
Fields§
§schema: StringSchema tag (REPORT_SCHEMA).
analyzer: StringThe analyzer id.
analyzer_version: StringThe analyzer’s version.
started_at: StringWhen the analyzer started, as the producer recorded it.
ended_at: StringWhen it finished.
exit_status: i32Its process exit status.
rules_digest: Option<String>Digest of the rule set it ran with.
image_digest: Option<String>Digest of the container image it ran in, where one was used.
advisory_db: Option<AdvisoryDb>The pinned advisory database it consulted.
source: SourceIdentityThe source identity it ran against.
findings: Vec<ReportFinding>The findings it produced.
Trait Implementations§
Source§impl Clone for NormalizedReport
impl Clone for NormalizedReport
Source§fn clone(&self) -> NormalizedReport
fn clone(&self) -> NormalizedReport
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 NormalizedReport
impl Debug for NormalizedReport
Source§impl<'de> Deserialize<'de> for NormalizedReport
impl<'de> Deserialize<'de> for NormalizedReport
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for NormalizedReport
Source§impl PartialEq for NormalizedReport
impl PartialEq for NormalizedReport
Source§impl Serialize for NormalizedReport
impl Serialize for NormalizedReport
impl StructuralPartialEq for NormalizedReport
Auto Trait Implementations§
impl Freeze for NormalizedReport
impl RefUnwindSafe for NormalizedReport
impl Send for NormalizedReport
impl Sync for NormalizedReport
impl Unpin for NormalizedReport
impl UnsafeUnpin for NormalizedReport
impl UnwindSafe for NormalizedReport
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.