Struct cli::commands::build::SharedBuildCommand [−][src]
pub struct SharedBuildCommand {
pub example: Option<String>,
pub features: Vec<String>,
pub all_features: bool,
pub no_default_features: bool,
pub release: bool,
pub target_dir: Option<PathBuf>,
pub quad: bool,
}Fields
example: Option<String>Build the specified example
features: Vec<String>Space or comma separated list of features to activate. These features only apply to the current
directory’s package. Features of direct dependencies may be enabled with <dep-name>/<feature-name> syntax.
This flag may be specified multiple times, which enables all specified features
all_features: boolActivate all available features of selected package
no_default_features: boolDo not activate the default feature of the current directory’s package
release: boolBuild optimized artifact with the release profile
target_dir: Option<PathBuf>Directory for generated artifact and intermediate files
quad: boolSpecifies to build macroquad game engine
Implementations
Trait Implementations
Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Assign values from ArgMatches to self.
fn parse_from<I, T>(itr: I) -> Self where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn parse_from<I, T>(itr: I) -> Self where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Parse from iterator, exit on error
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Parse from iterator, return Err on error.
fn update_from<I, T>(&mut self, itr: I) where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn update_from<I, T>(&mut self, itr: I) where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Update from iterator, exit on error
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Update from iterator, return Err on error.
StructOpt::clap is replaced with IntoApp::into_app (derived as part of Parser)
Deprecated, StructOpt::clap replaced with IntoApp::into_app (derive as part of
Parser) Read more
StructOpt::from_clap is replaced with FromArgMatches::from_arg_matches (derived as part of Parser)
Deprecated, StructOpt::from_clap replaced with FromArgMatches::from_arg_matches (derive as part of
Parser) Read more
StructOpt::from_args is replaced with Parser::parse (note the change in derives)
Deprecated, StructOpt::from_args replaced with Parser::parse (note the change in derives)
StructOpt::from_args_safe is replaced with Parser::try_parse (note the change in derives)
Deprecated, StructOpt::from_args_safe replaced with Parser::try_parse (note the change in derives)
StructOpt::from_iter is replaced with Parser::parse_from (note the change in derives)
Deprecated, StructOpt::from_iter replaced with Parser::parse_from (note the change in derives)
fn from_iter_safe<I, T>(itr: I) -> Result<Self, Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn from_iter_safe<I, T>(itr: I) -> Result<Self, Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
StructOpt::from_iter_safe is replaced with Parser::try_parse_from (note the change in derives)
Deprecated, StructOpt::from_iter_safe replaced with Parser::try_parse_from (note the
change in derives) Read more
Auto Trait Implementations
impl RefUnwindSafe for SharedBuildCommand
impl Send for SharedBuildCommand
impl Sync for SharedBuildCommand
impl Unpin for SharedBuildCommand
impl UnwindSafe for SharedBuildCommand
Blanket Implementations
Mutably borrows from an owned value. Read more
