pub struct NewArgs {
pub name: String,
pub path: Option<PathBuf>,
pub template: String,
pub org: String,
pub version: String,
pub license: String,
pub wit_world: String,
pub non_interactive: bool,
pub no_check: bool,
pub no_git: bool,
pub json: bool,
}Fields§
§name: StringName for the component (kebab-or-snake case)
path: Option<PathBuf>Path to create the component (defaults to ./
template: StringTemplate identifier to scaffold from
org: StringReverse DNS-style organisation identifier
version: StringInitial component version
license: StringLicense to embed into generated sources
wit_world: StringExported WIT world name
non_interactive: boolRun without prompting for confirmation
no_check: boolSkip the post-scaffold cargo check (hidden flag for testing/local dev)
no_git: boolSkip git initialization after scaffolding
json: boolEmit JSON instead of human-readable output
Trait Implementations§
Source§impl Args for NewArgs
impl Args for NewArgs
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 FromArgMatches for NewArgs
impl FromArgMatches for NewArgs
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 NewArgs
impl RefUnwindSafe for NewArgs
impl Send for NewArgs
impl Sync for NewArgs
impl Unpin for NewArgs
impl UnwindSafe for NewArgs
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