pub struct BuildArgs {
pub mode: ModeArgs,
pub all: bool,
pub platforms: Vec<NativePlatform>,
pub native_path: Option<PathBuf>,
pub plan: bool,
}Expand description
The native build settings a command line carries.
The flags that select native work live beside the ordinary build
flags, so euv build keeps its current behaviour and the native
options only take effect when they are given.
Fields§
§mode: ModeArgsThe ordinary build arguments shared with the run mode.
all: boolBuild every native deliverable this host can produce.
platforms: Vec<NativePlatform>Build only the named native platforms.
native_path: Option<PathBuf>The native client project directory, when it is not inside this repository.
plan: boolPrint the resolved native plan and exit without building.
Implementations§
Source§impl BuildArgs
impl BuildArgs
pub fn get_mut_mode(&mut self) -> &mut ModeArgs
pub fn set_mode(&mut self, val: ModeArgs) -> &mut Self
pub fn get_mut_all(&mut self) -> &mut bool
pub fn set_all(&mut self, val: bool) -> &mut Self
pub fn get_mut_platforms(&mut self) -> &mut Vec<NativePlatform>
pub fn set_platforms(&mut self, val: Vec<NativePlatform>) -> &mut Self
pub fn get_mut_native_path(&mut self) -> &mut Option<PathBuf>
pub fn set_native_path(&mut self, val: Option<PathBuf>) -> &mut Self
pub fn get_mut_plan(&mut self) -> &mut bool
pub fn set_plan(&mut self, val: bool) -> &mut Self
Trait Implementations§
Source§impl Args for BuildArgs
impl Args for BuildArgs
Source§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
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for BuildArgs
impl CommandFactory for BuildArgs
Source§impl FromArgMatches for BuildArgs
impl FromArgMatches for BuildArgs
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 Parser for BuildArgs
impl Parser for BuildArgs
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 update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Forget for BuildArgs
impl Freeze for BuildArgs
impl Move for BuildArgs
impl RefUnwindSafe for BuildArgs
impl Send for BuildArgs
impl Sync for BuildArgs
impl Unpin for BuildArgs
impl UnsafeUnpin for BuildArgs
impl UnwindSafe for BuildArgs
Blanket Implementations§
impl<T> AnySend for T
impl<T> AnySendClone for T
impl<T> AnySendSync for T
impl<T> AnySendSyncClone for T
impl<T> AnySync for T
impl<T> AnySyncClone for T
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