pub(crate) struct CompileArgs {
pub(crate) program: PathBuf,
pub(crate) output: Option<PathBuf>,
pub(crate) options: Vec<String>,
}Fields§
§program: PathBufThe program to build, e.g. part.geop.
output: Option<PathBuf>Where to write the part, in the format its extension names — one an
exporter writes. Defaults to the program’s path with the extension
of the default format (see default_output).
options: Vec<String>An option of the exporter, key=value, the value JSON or else
text: -O quality=8, -O 'solids=["extrude(hole)"]'. Repeat for
several; those the exporter does not take, it ignores.
Trait Implementations§
Source§impl Args for CompileArgs
impl Args for CompileArgs
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
Append to [
Command] so it can instantiate self via
[FromArgMatches::update_from_arg_matches_mut] Read moreSource§impl FromArgMatches for CompileArgs
impl FromArgMatches for CompileArgs
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.Auto Trait Implementations§
impl Freeze for CompileArgs
impl RefUnwindSafe for CompileArgs
impl Send for CompileArgs
impl Sync for CompileArgs
impl Unpin for CompileArgs
impl UnsafeUnpin for CompileArgs
impl UnwindSafe for CompileArgs
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