pub struct Artifact {
Show 13 fields pub contents: Option<ArtifactContent>, pub description: Option<Message>, pub encoding: Option<String>, pub hashes: Option<HashMap<String, String>>, pub last_modified_time_utc: Option<String>, pub length: Option<i64>, pub location: Option<ArtifactLocation>, pub mime_type: Option<String>, pub offset: Option<i64>, pub parent_index: Option<i64>, pub properties: Option<PropertyBag>, pub roles: Option<Vec<Role>>, pub source_language: Option<String>,
}
Expand description

A single artifact. In some cases, this artifact might be nested within another artifact.

Fields

contents: Option<ArtifactContent>

The contents of the artifact.

description: Option<Message>

A short description of the artifact.

encoding: Option<String>

Specifies the encoding for an artifact object that refers to a text file.

hashes: Option<HashMap<String, String>>

A dictionary, each of whose keys is the name of a hash function and each of whose values is the hashed value of the artifact produced by the specified hash function.

last_modified_time_utc: Option<String>

The Coordinated Universal Time (UTC) date and time at which the artifact was most recently modified. See “Date/time properties” in the SARIF spec for the required format.

length: Option<i64>

The length of the artifact in bytes.

location: Option<ArtifactLocation>

The location of the artifact.

mime_type: Option<String>

The MIME type (RFC 2045) of the artifact.

offset: Option<i64>

The offset in bytes of the artifact within its containing artifact.

parent_index: Option<i64>

Identifies the index of the immediate parent of the artifact, if this artifact is nested.

properties: Option<PropertyBag>

Key/value pairs that provide additional information about the artifact.

roles: Option<Vec<Role>>

The role or roles played by the artifact in the analysis.

source_language: Option<String>

Specifies the source language for any artifact object that refers to a text file that contains source code.

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more