pub struct InitCommand {
pub name: Option<String>,
pub yes: bool,
pub no_git: bool,
pub framework: Option<String>,
pub template: Option<String>,
pub toolchain: Option<String>,
}Fields§
§name: Option<String>Project name — skips the interactive name prompt
yes: boolSkip prompts and use saved defaults
no_git: boolSkip git init
framework: Option<String>Testing framework (none, mollusk, quasarsvm-rust, quasarsvm-web3js, quasarsvm-kit)
template: Option<String>Project template (minimal, full)
toolchain: Option<String>Toolchain (solana, upstream)
Trait Implementations§
Source§impl Args for InitCommand
impl Args for InitCommand
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 Debug for InitCommand
impl Debug for InitCommand
Source§impl Default for InitCommand
impl Default for InitCommand
Source§fn default() -> InitCommand
fn default() -> InitCommand
Returns the “default value” for a type. Read more
Source§impl FromArgMatches for InitCommand
impl FromArgMatches for InitCommand
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 InitCommand
impl RefUnwindSafe for InitCommand
impl Send for InitCommand
impl Sync for InitCommand
impl Unpin for InitCommand
impl UnsafeUnpin for InitCommand
impl UnwindSafe for InitCommand
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