Enum sugar_cli::cli::ConfigSubcommands
source · pub enum ConfigSubcommands {
Create {
config: Option<String>,
rpc_url: Option<String>,
keypair: Option<String>,
assets_dir: String,
},
Update {
config: String,
keypair: Option<String>,
rpc_url: Option<String>,
cache: String,
new_authority: Option<String>,
candy_machine: Option<String>,
},
Set {
keypair: Option<String>,
rpc_url: Option<String>,
cache: String,
token_standard: Option<TokenStandard>,
candy_machine: Option<String>,
rule_set: Option<String>,
},
}Variants§
Create
Fields
Interactive process to create a config file
Update
Fields
§
keypair: Option<String>Path to the keypair file, uses Sol config or defaults to “~/.config/solana/id.json”
Pubkey for the new authority
Update the candy machine config on-chain
Set
Fields
§
keypair: Option<String>Path to the keypair file, uses Sol config or defaults to “~/.config/solana/id.json”
§
token_standard: Option<TokenStandard>Token Standard to set.
Set specific candy machine config values
Trait Implementations§
source§impl FromArgMatches for ConfigSubcommands
impl FromArgMatches for ConfigSubcommands
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<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches ) -> Result<(), Error>
Assign values from
ArgMatches to self.source§impl Subcommand for ConfigSubcommands
impl Subcommand for ConfigSubcommands
source§fn augment_subcommands<'b>(__clap_app: Command<'b>) -> Command<'b>
fn augment_subcommands<'b>(__clap_app: Command<'b>) -> Command<'b>
source§fn augment_subcommands_for_update<'b>(__clap_app: Command<'b>) -> Command<'b>
fn augment_subcommands_for_update<'b>(__clap_app: Command<'b>) -> Command<'b>
source§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl RefUnwindSafe for ConfigSubcommands
impl Send for ConfigSubcommands
impl Sync for ConfigSubcommands
impl Unpin for ConfigSubcommands
impl UnwindSafe for ConfigSubcommands
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
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