pub enum Commands {
Burn {
asset: Pubkey,
recipient: Option<Pubkey>,
},
Mint {
asset_file_path: PathBuf,
},
Create {
name: String,
asset_keypair_path: Option<PathBuf>,
immutable: bool,
owner: Option<Pubkey>,
},
Decode {
asset: Pubkey,
field: Option<String>,
},
Approve {
asset: Pubkey,
delegate: Pubkey,
role: Vec<String>,
},
Lock {
asset: Pubkey,
authority_keypair_path: Option<PathBuf>,
},
Revoke {
asset: Pubkey,
role: Vec<String>,
all: bool,
},
Transfer {
asset: Pubkey,
recipient: Pubkey,
},
Unlock {
asset: Pubkey,
authority_keypair_path: Option<PathBuf>,
},
}Variants§
Burn
Fields
Burn an asset.
Mint
Create
Fields
Create an asset.
Decode
Fields
Get an asset account’s data and decode it.
Approve
Fields
Set a delegate on an asset with specific roles.
Lock
Lock an asset, preventing any actions to be performed on it.
Revoke
Fields
Revoke a delegate from an asset.
Transfer
Transfer an asset to a new holder.
Unlock
Fields
Path to the authority keypair file. Defaults to the signer.
Unlock an asset, allowing actions to be performed on it.
Trait Implementations§
source§impl FromArgMatches for Commands
impl FromArgMatches for Commands
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 Commands
impl Subcommand for Commands
source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
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 Commands
impl Send for Commands
impl Sync for Commands
impl Unpin for Commands
impl UnwindSafe for Commands
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