Struct clap_cargo_extra::CargoBuild
source · #[non_exhaustive]pub struct CargoBuild {
pub optimize: bool,
pub target: Option<String>,
pub all_targets: bool,
pub link_args: bool,
pub release: bool,
pub profile: Option<String>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.optimize: bool
Add additional nightly features for optimizing
target: Option<String>
Build for the target triple
all_targets: bool
Build all targets
link_args: bool
§release: bool
Build artifacts in release mode, with optimizations
profile: Option<String>
Build artifacts with the specified profile
Implementations§
Trait Implementations§
source§impl Args for CargoBuild
impl Args for CargoBuild
source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
Report the [
ArgGroup::id
][crate::ArgGroup::id] for this set of argumentssource§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
source§impl Clone for CargoBuild
impl Clone for CargoBuild
source§fn clone(&self) -> CargoBuild
fn clone(&self) -> CargoBuild
Returns a copy 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§impl Debug for CargoBuild
impl Debug for CargoBuild
source§impl Default for CargoBuild
impl Default for CargoBuild
source§fn default() -> CargoBuild
fn default() -> CargoBuild
Returns the “default value” for a type. Read more
source§impl FromArgMatches for CargoBuild
impl FromArgMatches for CargoBuild
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 Merge for CargoBuild
impl Merge for CargoBuild
fn merge(&mut self, other: CargoBuild)
source§impl PartialEq<CargoBuild> for CargoBuild
impl PartialEq<CargoBuild> for CargoBuild
source§fn eq(&self, other: &CargoBuild) -> bool
fn eq(&self, other: &CargoBuild) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for CargoBuild
impl StructuralEq for CargoBuild
impl StructuralPartialEq for CargoBuild
Auto Trait Implementations§
impl RefUnwindSafe for CargoBuild
impl Send for CargoBuild
impl Sync for CargoBuild
impl Unpin for CargoBuild
impl UnwindSafe for CargoBuild
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