pub struct AddMetadata {
pub name: Option<String>,
pub language: Vec<(String, String)>,
pub processed_by: Vec<(String, String)>,
pub sdk: Vec<(String, String)>,
pub author: Option<Author>,
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§
§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
Contact details of the people or organization responsible, encoded as a freeform string.
description: Option<Description>
A human-readable description of the binary
licenses: Option<Licenses>
License(s) under which contained software is distributed as an SPDX License Expression.
source: Option<Source>
URL to get source code for building the image
homepage: Option<Homepage>
URL to find more information on the binary
revision: Option<Revision>
Source control revision identifier for the packaged software.
version: Option<Version>
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