#[non_exhaustive]pub struct AddMetadata {
pub name: Option<String>,
pub language: Vec<(String, String)>,
pub processed_by: Vec<(String, String)>,
pub sdk: Vec<(String, String)>,
pub authors: Option<Authors>,
pub description: Option<Description>,
pub licenses: Option<Licenses>,
pub source: Option<Source>,
pub homepage: Option<Homepage>,
pub revision: Option<Revision>,
pub version: Option<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: Option<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: Option<Description>
oci
only.A human-readable description of the binary
licenses: Option<Licenses>
oci
only.License(s) under which contained software is distributed as an SPDX License Expression.
source: Option<Source>
oci
only.URL to get source code for building the image
homepage: Option<Homepage>
oci
only.URL to find more information on the binary
revision: Option<Revision>
oci
only.Source control revision identifier for the packaged software.
version: Option<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