Struct google_containeranalysis1_beta1::api::Link[][src]

pub struct Link {
    pub byproducts: Option<ByProducts>,
    pub command: Option<Vec<String>>,
    pub environment: Option<Environment>,
    pub materials: Option<Vec<GrafeasV1beta1IntotoArtifact>>,
    pub products: Option<Vec<GrafeasV1beta1IntotoArtifact>>,
}
Expand description

This corresponds to an in-toto link.

This type is not used in any activity, and only used as part of another schema.

Fields

byproducts: Option<ByProducts>

ByProducts are data generated as part of a software supply chain step, but are not the actual result of the step.

command: Option<Vec<String>>

This field contains the full command executed for the step. This can also be empty if links are generated for operations that aren’t directly mapped to a specific command. Each term in the command is an independent string in the list. An example of a command in the in-toto metadata field is: “command”: [“git”, “clone”, “https://github.com/in-toto/demo-project.git”]

environment: Option<Environment>

This is a field that can be used to capture information about the environment. It is suggested for this field to contain information that details environment variables, filesystem information, and the present working directory. The recommended structure of this field is: “environment”: { “custom_values”: { “variables”: “”, “filesystem”: “”, “workdir”: “”, “”: “…” } }

materials: Option<Vec<GrafeasV1beta1IntotoArtifact>>

Materials are the supply chain artifacts that go into the step and are used for the operation performed. The key of the map is the path of the artifact and the structure contains the recorded hash information. An example is: “materials”: [ { “resource_uri”: “foo/bar”, “hashes”: { “sha256”: “ebebf…”, : } } ]

products: Option<Vec<GrafeasV1beta1IntotoArtifact>>

Products are the supply chain artifacts generated as a result of the step. The structure is identical to that of materials.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. 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

Performs the conversion.

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

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.