Struct wasm_metadata::AddMetadata
source · pub struct AddMetadata {
pub name: Option<String>,
pub language: Vec<String>,
pub processed_by: Vec<(String, String)>,
pub sdk: Vec<(String, String)>,
pub registry_metadata: Option<RegistryMetadata>,
}
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>
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
registry_metadata: Option<RegistryMetadata>
Add an registry metadata to the registry-metadata section
Implementations§
Trait Implementations§
source§impl Clone for AddMetadata
impl Clone for AddMetadata
source§fn clone(&self) -> AddMetadata
fn clone(&self) -> AddMetadata
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AddMetadata
impl Debug for AddMetadata
source§impl Default for AddMetadata
impl Default for AddMetadata
source§fn default() -> AddMetadata
fn default() -> AddMetadata
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for AddMetadata
impl Send for AddMetadata
impl Sync for AddMetadata
impl Unpin for AddMetadata
impl UnwindSafe for AddMetadata
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more