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
sourceimpl<'de> Deserialize<'de> for Artifact
impl<'de> Deserialize<'de> for Artifact
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
Auto Trait Implementations
impl RefUnwindSafe for Artifact
impl Send for Artifact
impl Sync for Artifact
impl Unpin for Artifact
impl UnwindSafe for Artifact
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