pub struct ArtifactManifestBuilder { /* private fields */ }
Expand description
Builder for ArtifactManifest
.
Implementations§
Source§impl ArtifactManifestBuilder
impl ArtifactManifestBuilder
Sourcepub fn artifact_type<VALUE: Into<MediaType>>(self, value: VALUE) -> Self
pub fn artifact_type<VALUE: Into<MediaType>>(self, value: VALUE) -> Self
This property SHOULD be used and contain the mediaType of the referenced artifact. If defined, the value MUST comply with RFC 6838, including the naming requirements in its section 4.2, and MAY be registered with IANA.
Sourcepub fn blobs<VALUE: Into<Vec<Descriptor>>>(self, value: VALUE) -> Self
pub fn blobs<VALUE: Into<Vec<Descriptor>>>(self, value: VALUE) -> Self
This OPTIONAL property is an array of objects and each item in the array MUST be a descriptor. Each descriptor represents an artifact of any IANA mediaType. The list MAY be ordered for certain artifact types like scan results.
Sourcepub fn subject<VALUE: Into<Descriptor>>(self, value: VALUE) -> Self
pub fn subject<VALUE: Into<Descriptor>>(self, value: VALUE) -> Self
This OPTIONAL property specifies a descriptor of another manifest. This value, used by the referrers API, indicates a relationship to the specified manifest.
Sourcepub fn annotations<VALUE: Into<HashMap<String, String>>>(
self,
value: VALUE,
) -> Self
pub fn annotations<VALUE: Into<HashMap<String, String>>>( self, value: VALUE, ) -> Self
This OPTIONAL property contains additional metadata for the artifact manifest. This OPTIONAL property MUST use the annotation rules. See Pre-Defined Annotation Keys. Annotations MAY be used to filter the response from the referrers API.