pub struct Result {Show 30 fields
pub analysis_target: Option<ArtifactLocation>,
pub attachments: Option<Vec<Attachment>>,
pub baseline_state: Option<Value>,
pub code_flows: Option<Vec<CodeFlow>>,
pub correlation_guid: Option<String>,
pub fingerprints: Option<BTreeMap<String, String>>,
pub fixes: Option<Vec<Fix>>,
pub graph_traversals: Option<Vec<GraphTraversal>>,
pub graphs: Option<Vec<Graph>>,
pub guid: Option<String>,
pub hosted_viewer_uri: Option<String>,
pub kind: Option<ResultKind>,
pub level: Option<ResultLevel>,
pub locations: Option<Vec<Location>>,
pub message: Message,
pub occurrence_count: Option<i64>,
pub partial_fingerprints: Option<BTreeMap<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<Value>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<BTreeMap<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.
graph_traversals: Option<Vec<GraphTraversal>>An array of one or more unique ‘graphTraversal’ objects.
graphs: Option<Vec<Graph>>An array of zero or more unique graph objects associated with the result.
guid: Option<String>A stable, unique identifier 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<ResultLevel>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: MessageA 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<BTreeMap<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 result is relevant.
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.
Implementations§
Source§impl Result
impl Result
Sourcepub fn builder() -> ResultBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>
pub fn builder() -> ResultBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building Result.
On the builder, call .analysis_target(...)(optional), .attachments(...)(optional), .baseline_state(...)(optional), .code_flows(...)(optional), .correlation_guid(...)(optional), .fingerprints(...)(optional), .fixes(...)(optional), .graph_traversals(...)(optional), .graphs(...)(optional), .guid(...)(optional), .hosted_viewer_uri(...)(optional), .kind(...)(optional), .level(...)(optional), .locations(...)(optional), .message(...), .occurrence_count(...)(optional), .partial_fingerprints(...)(optional), .properties(...)(optional), .provenance(...)(optional), .rank(...)(optional), .related_locations(...)(optional), .rule(...)(optional), .rule_id(...)(optional), .rule_index(...)(optional), .stacks(...)(optional), .suppressions(...)(optional), .taxa(...)(optional), .web_request(...)(optional), .web_response(...)(optional), .work_item_uris(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of Result.