pub struct AnalysisRun {Show 14 fields
pub layer: String,
pub analyzer: String,
pub analyzer_version: String,
pub runner: RunnerKind,
pub isolation: Isolation,
pub image_digest: Option<String>,
pub rules_digest: Option<String>,
pub advisory_db: Option<AdvisoryDb>,
pub command_policy: CommandPolicy,
pub source: SourceIdentity,
pub started_at: String,
pub ended_at: String,
pub exit_status: i32,
pub report_digest: String,
}Expand description
One analyzer execution, plus everything needed to reproduce or distrust it.
This is the evidence chain graph provenance was never designed to hold: what ran, at what version, under what isolation and command policy, against which rules and advisory database, over which source identity, and with what result.
Fields§
§layer: StringThe replaceable layer this run owns: security:<analyzer>:<worktree-id>
(see layer_key). Unique — one live run per layer.
analyzer: StringThe analyzer id (cargo-audit, semgrep, …).
analyzer_version: StringThe analyzer’s own version string, as reported by the producer.
runner: RunnerKindWhich backend produced this run.
isolation: IsolationThe isolation boundary the run actually had.
image_digest: Option<String>Digest of the container image, when one was used.
rules_digest: Option<String>Digest of the rule set the analyzer was run with.
advisory_db: Option<AdvisoryDb>The pinned advisory database consulted, and its publication date.
command_policy: CommandPolicyWhat the run was permitted to do.
source: SourceIdentityThe source identity the run was executed against.
started_at: StringProducer-supplied start timestamp.
ended_at: StringProducer-supplied end timestamp.
exit_status: i32The analyzer’s process exit status.
report_digest: StringDigest of the raw report this run was derived from — the tie between the stored findings and the exact bytes they came from.
Trait Implementations§
Source§impl Clone for AnalysisRun
impl Clone for AnalysisRun
Source§fn clone(&self) -> AnalysisRun
fn clone(&self) -> AnalysisRun
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 AnalysisRun
impl Debug for AnalysisRun
Source§impl<'de> Deserialize<'de> for AnalysisRun
impl<'de> Deserialize<'de> for AnalysisRun
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>,
impl Eq for AnalysisRun
Source§impl PartialEq for AnalysisRun
impl PartialEq for AnalysisRun
Source§impl Serialize for AnalysisRun
impl Serialize for AnalysisRun
impl StructuralPartialEq for AnalysisRun
Auto Trait Implementations§
impl Freeze for AnalysisRun
impl RefUnwindSafe for AnalysisRun
impl Send for AnalysisRun
impl Sync for AnalysisRun
impl Unpin for AnalysisRun
impl UnsafeUnpin for AnalysisRun
impl UnwindSafe for AnalysisRun
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
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
key and return true if they are equal.