Enum Commands

Source
pub enum Commands {
Show 17 variants Bundlr { keypair: Option<String>, rpc_url: Option<String>, action: BundlrAction, }, Collection { command: CollectionSubcommands, }, Config { command: ConfigSubcommands, }, Deploy { config: String, keypair: Option<String>, rpc_url: Option<String>, cache: String, collection_mint: Option<String>, }, Freeze { command: FreezeCommand, }, Guard { command: GuardCommand, }, Hash { config: String, cache: String, compare: Option<String>, }, Launch { assets_dir: String, keypair: Option<String>, config: String, rpc_url: Option<String>, cache: String, strict: bool, skip_collection_prompt: bool, }, Mint { keypair: Option<String>, rpc_url: Option<String>, cache: String, number: Option<u64>, receiver: Option<String>, candy_machine: Option<String>, }, Airdrop { keypair: Option<String>, rpc_url: Option<String>, cache: String, candy_machine: Option<String>, airdrop_list: String, }, Reveal { keypair: Option<String>, rpc_url: Option<String>, cache: String, config: String, timeout: Option<u64>, }, Show { keypair: Option<String>, rpc_url: Option<String>, cache: String, candy_machine: Option<String>, unminted: bool, }, Sign { keypair: Option<String>, rpc_url: Option<String>, cache: String, mint: Option<String>, candy_machine_id: Option<String>, }, Upload { assets_dir: String, config: String, keypair: Option<String>, rpc_url: Option<String>, cache: String, }, Validate { assets_dir: String, strict: bool, skip_collection_prompt: bool, }, Verify { keypair: Option<String>, rpc_url: Option<String>, cache: String, }, Withdraw { candy_machine: Option<String>, keypair: Option<String>, rpc_url: Option<String>, list: bool, },
}

Variants§

§

Bundlr

Interact with the bundlr network

Fields

§keypair: Option<String>

Path to the keypair file, uses Sol config or defaults to “~/.config/miraland/id.json”

§rpc_url: Option<String>

RPC Url

§

Collection

Manage the collection on the candy machine

§

Config

Manage candy machine configuration

Fields

§

Deploy

Deploy cache items into candy machine config on-chain

Fields

§config: String

Path to the config file, defaults to “config.json”

§keypair: Option<String>

Path to the keypair file, uses Sol config or defaults to “~/.config/miraland/id.json”

§rpc_url: Option<String>

RPC Url

§cache: String

Path to the cache file, defaults to “cache.json”

§collection_mint: Option<String>

The optional collection address where the candymachine will mint the tokens to

§

Freeze

Manage freeze guard actions

Fields

§

Guard

Manage guards on the candy machine

Fields

§

Hash

Generate hash of cache file for hidden settings.

Fields

§config: String

Path to the config file, defaults to “config.json”

§cache: String

Path to the cache file, defaults to “cache.json”

§compare: Option<String>

Compare a provided hash with a cache file to check integrity.

§

Launch

Create a candy machine deployment from assets

Fields

§assets_dir: String

Path to the directory with the assets to upload

§keypair: Option<String>

Path to the keypair file [default: solana config or “~/.config/miraland/id.json”]

§config: String

Path to the config file

§rpc_url: Option<String>

RPC Url

§cache: String

Path to the cache file

§strict: bool

Strict mode: validate against JSON metadata standard exactly

§skip_collection_prompt: bool

Skip collection validate prompt

§

Mint

Mint one NFT from candy machine

Fields

§keypair: Option<String>

Path to the keypair file, uses Sol config or defaults to “~/.config/miraland/id.json”

§rpc_url: Option<String>

RPC Url

§cache: String

Path to the cache file, defaults to “cache.json”

§number: Option<u64>

Amount of NFTs to be minted in bulk

§receiver: Option<String>

Public key of the receiver of the minted NFT, defaults to keypair

§candy_machine: Option<String>

Address of candy machine to mint from.

§

Airdrop

Airdrop NFTs from candy machine

Fields

§keypair: Option<String>

Path to the keypair file, uses Sol config or defaults to “~/.config/miraland/id.json”

§rpc_url: Option<String>

RPC Url

§cache: String

Path to the cache file, defaults to “cache.json”

§candy_machine: Option<String>

Address of candy machine to mint from.

§airdrop_list: String

List of airdrop targets.

§

Reveal

Reveal the NFTs from a hidden settings candy machine

Fields

§keypair: Option<String>

Path to the keypair file, uses Sol config or defaults to “~/.config/miraland/id.json”

§rpc_url: Option<String>

RPC Url

§cache: String

Path to the cache file, defaults to “cache.json”

§config: String

Path to the config file

§timeout: Option<u64>

RPC timeout to retrieve the mint list (in seconds).

§

Show

Show the on-chain config of an existing candy machine

Fields

§keypair: Option<String>

Path to the keypair file, uses Sol config or defaults to “~/.config/miraland/id.json”

§rpc_url: Option<String>

RPC Url

§cache: String

Path to the cache file, defaults to “cache.json”

§candy_machine: Option<String>

Address of candy machine

§unminted: bool

Display a list of unminted indices

§

Sign

Sign one or all NFTs from candy machine

Fields

§keypair: Option<String>

Path to the keypair file, uses Sol config or defaults to “~/.config/miraland/id.json”

§rpc_url: Option<String>

RPC Url

§cache: String

Path to the cache file, defaults to “cache.json”

§mint: Option<String>

Mint id for single NFT to be signed

§candy_machine_id: Option<String>

Candy machine id.

§

Upload

Upload assets to storage and creates the cache config

Fields

§assets_dir: String

Path to the directory with the assets to upload

§config: String

Path to the config file

§keypair: Option<String>

Path to the keypair file [default: solana config or “~/.config/miraland/id.json”]

§rpc_url: Option<String>

RPC Url

§cache: String

Path to the cache file

§

Validate

Validate JSON metadata files

Fields

§assets_dir: String

Assets directory to upload, defaults to “assets”

§strict: bool

Strict mode: validate against JSON metadata standard exactly

§skip_collection_prompt: bool

Skip collection prompt

§

Verify

Verify uploaded data

Fields

§keypair: Option<String>

Path to the keypair file, uses Sol config or defaults to “~/.config/miraland/id.json”

§rpc_url: Option<String>

RPC Url

§cache: String

Path to the cache file, defaults to “cache.json”

§

Withdraw

Withdraw funds a from candy machine account closing it

Fields

§candy_machine: Option<String>

Address of candy machine to withdraw funds from.

§keypair: Option<String>

Path to the keypair file, uses Sol config or defaults to “~/.config/miraland/id.json”

§rpc_url: Option<String>

RPC Url

§list: bool

List available candy machines, no withdraw performed

Trait Implementations§

Source§

impl FromArgMatches for Commands

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

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>

Assign values from ArgMatches to self.
Source§

impl Subcommand for Commands

Source§

fn augment_subcommands<'b>(__clap_app: Command<'b>) -> Command<'b>

Append to Command so it can instantiate Self. Read more
Source§

fn augment_subcommands_for_update<'b>(__clap_app: Command<'b>) -> Command<'b>

Append to Command so it can update self. Read more
Source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> AbiExample for T

Source§

default fn example() -> T

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

Source§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

Source§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

Source§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T