pub struct TrivyResult {Show 30 fields
pub analysis_target: Option<ArtifactLocation>,
pub attachments: Option<Vec<Attachment>>,
pub baseline_state: Option<BaselineState>,
pub code_flows: Option<Vec<CodeFlow>>,
pub correlation_guid: Option<String>,
pub fingerprints: Option<HashMap<String, String>>,
pub fixes: Option<Vec<Fix>>,
pub graphs: Option<Vec<Graph>>,
pub graph_traversals: Option<Vec<GraphTraversal>>,
pub guid: Option<String>,
pub hosted_viewer_uri: Option<String>,
pub kind: Option<ResultKind>,
pub level: Option<Level>,
pub locations: Option<Vec<Location>>,
pub message: Message,
pub occurrence_count: Option<i64>,
pub partial_fingerprints: Option<HashMap<String, String>>,
pub properties: Option<PropertyBag>,
pub provenance: Option<ResultProvenance>,
pub rank: Option<f64>,
pub related_locations: Option<Vec<Location>>,
pub rule: Option<ReportingDescriptorReference>,
pub rule_id: Option<String>,
pub rule_index: Option<i64>,
pub stacks: Option<Vec<Stack>>,
pub suppressions: Option<Vec<Suppression>>,
pub taxa: Option<Vec<ReportingDescriptorReference>>,
pub web_request: Option<WebRequest>,
pub web_response: Option<WebResponse>,
pub work_item_uris: Option<Vec<String>>,
}
Expand description
A result produced by an analysis tool.
Fields
analysis_target: Option<ArtifactLocation>
Identifies the artifact that the analysis tool was instructed to scan. This need not be the same as the artifact where the result actually occurred.
attachments: Option<Vec<Attachment>>
A set of artifacts relevant to the result.
baseline_state: Option<BaselineState>
The state of a result relative to a baseline of a previous run.
code_flows: Option<Vec<CodeFlow>>
An array of ‘codeFlow’ objects relevant to the result.
correlation_guid: Option<String>
A stable, unique identifier for the equivalence class of logically identical results to which this result belongs, in the form of a GUID.
fingerprints: Option<HashMap<String, String>>
A set of strings each of which individually defines a stable, unique identity for the result.
fixes: Option<Vec<Fix>>
An array of ‘fix’ objects, each of which represents a proposed fix to the problem indicated by the result.
graphs: Option<Vec<Graph>>
An array of zero or more unique graph objects associated with the result.
graph_traversals: Option<Vec<GraphTraversal>>
An array of one or more unique ‘graphTraversal’ objects.
guid: Option<String>
A stable, unique identifer for the result in the form of a GUID.
hosted_viewer_uri: Option<String>
An absolute URI at which the result can be viewed.
kind: Option<ResultKind>
A value that categorizes results by evaluation state.
level: Option<Level>
A value specifying the severity level of the result.
locations: Option<Vec<Location>>
The set of locations where the result was detected. Specify only one location unless the problem indicated by the result can only be corrected by making a change at every specified location.
message: Message
A message that describes the result. The first sentence of the message only will be displayed when visible space is limited.
occurrence_count: Option<i64>
A positive integer specifying the number of times this logically unique result was observed in this run.
partial_fingerprints: Option<HashMap<String, String>>
A set of strings that contribute to the stable, unique identity of the result.
properties: Option<PropertyBag>
Key/value pairs that provide additional information about the result.
provenance: Option<ResultProvenance>
Information about how and when the result was detected.
rank: Option<f64>
A number representing the priority or importance of the result.
A set of locations relevant to this result.
rule: Option<ReportingDescriptorReference>
A reference used to locate the rule descriptor relevant to this result.
rule_id: Option<String>
The stable, unique identifier of the rule, if any, to which this notification is relevant. This member can be used to retrieve rule metadata from the rules dictionary, if it exists.
rule_index: Option<i64>
The index within the tool component rules array of the rule object associated with this result.
stacks: Option<Vec<Stack>>
An array of ‘stack’ objects relevant to the result.
suppressions: Option<Vec<Suppression>>
A set of suppressions relevant to this result.
taxa: Option<Vec<ReportingDescriptorReference>>
An array of references to taxonomy reporting descriptors that are applicable to the result.
web_request: Option<WebRequest>
A web request associated with this result.
web_response: Option<WebResponse>
A web response associated with this result.
work_item_uris: Option<Vec<String>>
The URIs of the work items associated with this result.
Trait Implementations
sourceimpl Debug for TrivyResult
impl Debug for TrivyResult
sourceimpl<'de> Deserialize<'de> for TrivyResult
impl<'de> Deserialize<'de> for TrivyResult
sourcefn 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
sourceimpl Serialize for TrivyResult
impl Serialize for TrivyResult
Auto Trait Implementations
impl RefUnwindSafe for TrivyResult
impl Send for TrivyResult
impl Sync for TrivyResult
impl Unpin for TrivyResult
impl UnwindSafe for TrivyResult
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more