#[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)>,
}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
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
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
Implementations§
Trait Implementations§
Source§impl Clone for AddMetadata
impl Clone for AddMetadata
Source§fn clone(&self) -> AddMetadata
fn clone(&self) -> AddMetadata
Returns a duplicate 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 Freeze for AddMetadata
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