#[non_exhaustive]pub struct AddMetadata {
pub name: AddMetadataField<String>,
pub language: Vec<(String, String)>,
pub processed_by: Vec<(String, String)>,
pub sdk: Vec<(String, String)>,
pub authors: AddMetadataField<Authors>,
pub description: AddMetadataField<Description>,
pub licenses: AddMetadataField<Licenses>,
pub source: AddMetadataField<Source>,
pub homepage: AddMetadataField<Homepage>,
pub revision: AddMetadataField<Revision>,
pub version: AddMetadataField<Version>,
}Expand description
Add metadata (module name, producers) to a WebAssembly file.
Supports both core WebAssembly modules and components. In components, metadata will be added to the outermost component.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: AddMetadataField<String>Add a module or component name to the names section
language: Vec<(String, String)>Add a programming language to the producers section
processed_by: Vec<(String, String)>Add a tool and its version to the producers section
sdk: Vec<(String, String)>Add an SDK and its version to the producers section
oci only.Contact details of the people or organization responsible, encoded as a freeform string.
description: AddMetadataField<Description>oci only.A human-readable description of the binary
licenses: AddMetadataField<Licenses>oci only.License(s) under which contained software is distributed as an SPDX License Expression.
source: AddMetadataField<Source>oci only.URL to get source code for building the image
homepage: AddMetadataField<Homepage>oci only.URL to find more information on the binary
revision: AddMetadataField<Revision>oci only.Source control revision identifier for the packaged software.
version: AddMetadataField<Version>oci only.Version of the packaged software
Implementations§
Trait Implementations§
Source§impl Clone for AddMetadata
impl Clone for AddMetadata
Source§fn clone(&self) -> AddMetadata
fn clone(&self) -> AddMetadata
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more