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§
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 clone(&self) -> SharedBuildCommand
fn clone(&self) -> SharedBuildCommand
Returns a duplicate 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§fn from_arg_matches(matches: &ArgMatches) -> Self
fn from_arg_matches(matches: &ArgMatches) -> Self
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§
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