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>, }
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: bool
Activate all available features of selected package
no_default_features: bool
Do not activate the default
feature of the current directory’s package
release: bool
Build optimized artifact with the release
profile
target_dir: Option<PathBuf>
Directory for generated artifact and intermediate files
Implementations
Trait Implementations
fn parse_from<I, T>(itr: I) -> Self where
T: Into<OsString> + Clone,
I: IntoIterator<Item = T>,
[src]
fn parse_from<I, T>(itr: I) -> Self where
T: Into<OsString> + Clone,
I: IntoIterator<Item = T>,
[src]Parse from iterator, exit on error
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error> where
T: Into<OsString> + Clone,
I: IntoIterator<Item = T>,
[src]
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error> where
T: Into<OsString> + Clone,
I: IntoIterator<Item = T>,
[src]Parse from iterator, return Err on error.
It’s common to have an “application context” struct (sometimes called config) that represents all the normalized values after being processed by the CLI. 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