#[repr(u8)]
pub enum AuthorityType {
MintTokens,
FreezeAccount,
AccountOwner,
CloseAccount,
TransferFeeConfig,
WithheldWithdraw,
CloseMint,
InterestRate,
PermanentDelegate,
ConfidentialTransferMint,
}
Expand description
Specifies the authority type for SetAuthority instructions
Variants§
MintTokens
Authority to mint new tokens
FreezeAccount
Authority to freeze any account associated with the Mint
AccountOwner
Owner of a given token account
CloseAccount
Authority to close a token account
TransferFeeConfig
Authority to set the transfer fee
WithheldWithdraw
Authority to withdraw withheld tokens from a mint
CloseMint
Authority to close a mint account
InterestRate
Authority to set the interest rate
PermanentDelegate
Authority to transfer or burn any tokens for a mint
ConfidentialTransferMint
Authority to update confidential transfer mint and aprove accounts for confidential transfers
Trait Implementations§
source§impl Clone for AuthorityType
impl Clone for AuthorityType
source§fn clone(&self) -> AuthorityType
fn clone(&self) -> AuthorityType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AuthorityType
impl Debug for AuthorityType
source§impl PartialEq<AuthorityType> for AuthorityType
impl PartialEq<AuthorityType> for AuthorityType
source§fn eq(&self, other: &AuthorityType) -> bool
fn eq(&self, other: &AuthorityType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.