pub enum CargoWebOpts {
Build(BuildOpts),
Check(CheckOpts),
Deploy(DeployOpts),
PrepareEmscripten(PrepareEmscriptenOpts),
Start(StartOpts),
Test(TestOpts),
// some variants omitted
}Expand description
CLI for cargo-web
Variants§
Build(BuildOpts)
Compile a local package and all of its dependencies
Check(CheckOpts)
Typecheck a local package and all of its dependencies
Deploy(DeployOpts)
Deploys your project so that it’s ready to be served statically
PrepareEmscripten(PrepareEmscriptenOpts)
Fetches and installs prebuilt Emscripten packages
Start(StartOpts)
Runs an embedded web server, which serves the built project
Test(TestOpts)
Compiles and runs tests
Trait Implementations§
Source§impl Debug for CargoWebOpts
impl Debug for CargoWebOpts
Source§impl StructOpt for CargoWebOpts
impl StructOpt for CargoWebOpts
Source§fn from_clap(matches: &ArgMatches<'_>) -> Self
fn from_clap(matches: &ArgMatches<'_>) -> Self
Creates the struct from
clap::ArgMatches. It cannot fail
with a parameter generated by clap by construction.Source§fn from_args() -> Selfwhere
Self: Sized,
fn from_args() -> Selfwhere
Self: Sized,
Gets the struct from the command line arguments. Print the
error message and quit the program in case of failure.
Source§fn from_iter<I>(iter: I) -> Self
fn from_iter<I>(iter: I) -> Self
Gets the struct from any iterator such as a
Vec of your making.
Print the error message and quit the program in case of failure.Auto Trait Implementations§
impl Freeze for CargoWebOpts
impl RefUnwindSafe for CargoWebOpts
impl Send for CargoWebOpts
impl Sync for CargoWebOpts
impl Unpin for CargoWebOpts
impl UnwindSafe for CargoWebOpts
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more