pub struct WitComponentApp {
pub imports: Vec<Interface>,
pub exports: Vec<Interface>,
pub output: Option<PathBuf>,
pub interface: Option<Interface>,
pub skip_validation: bool,
pub encoding: Option<StringEncoding>,
pub module: PathBuf,
}
Expand description
WebAssembly component encoder.
Encodes a WebAssembly component from a core WebAssembly module.
Fields§
§imports: Vec<Interface>
The path to an interface definition file the component imports.
exports: Vec<Interface>
The path to an interface definition file the component exports.
output: Option<PathBuf>
The path of the output WebAssembly component.
interface: Option<Interface>
The default interface the component exports.
skip_validation: bool
Skip validation of the output component.
encoding: Option<StringEncoding>
The expected string encoding format for the component.
Supported values are: utf8
(default), utf16
, and compact-utf16
.
module: PathBuf
Path to the WebAssembly module to encode.
Implementations§
Trait Implementations§
Source§impl Args for WitComponentApp
impl Args for WitComponentApp
Source§impl CommandFactory for WitComponentApp
impl CommandFactory for WitComponentApp
Source§fn into_app_for_update<'b>() -> Command<'b>
fn into_app_for_update<'b>() -> Command<'b>
Deprecated, replaced with
CommandFactory::command_for_update
Source§impl Debug for WitComponentApp
impl Debug for WitComponentApp
Source§impl FromArgMatches for WitComponentApp
impl FromArgMatches for WitComponentApp
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.Source§impl Parser for WitComponentApp
impl Parser for WitComponentApp
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Update from iterator, exit on error
Auto Trait Implementations§
impl Freeze for WitComponentApp
impl RefUnwindSafe for WitComponentApp
impl Send for WitComponentApp
impl Sync for WitComponentApp
impl Unpin for WitComponentApp
impl UnwindSafe for WitComponentApp
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