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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)