Enum spl_token_2022::instruction::AuthorityType
source · #[repr(u8)]pub enum AuthorityType {
Show 13 variants
MintTokens,
FreezeAccount,
AccountOwner,
CloseAccount,
TransferFeeConfig,
WithheldWithdraw,
CloseMint,
InterestRate,
PermanentDelegate,
ConfidentialTransferMint,
TransferHookProgramId,
ConfidentialTransferFeeConfig,
MetadataPointer,
}
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
TransferHookProgramId
Authority to set the transfer hook program id
ConfidentialTransferFeeConfig
Authority to set the withdraw withheld authority encryption key
MetadataPointer
Authority to set the metadata address
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 ==
.impl StructuralPartialEq for AuthorityType
Auto Trait Implementations§
impl RefUnwindSafe for AuthorityType
impl Send for AuthorityType
impl Sync for AuthorityType
impl Unpin for AuthorityType
impl UnwindSafe for AuthorityType
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