Enum spl_token_2022::instruction::AuthorityType
source · #[repr(u8)]pub enum AuthorityType {
Show 15 variants
MintTokens = 0,
FreezeAccount = 1,
AccountOwner = 2,
CloseAccount = 3,
TransferFeeConfig = 4,
WithheldWithdraw = 5,
CloseMint = 6,
InterestRate = 7,
PermanentDelegate = 8,
ConfidentialTransferMint = 9,
TransferHookProgramId = 10,
ConfidentialTransferFeeConfig = 11,
MetadataPointer = 12,
GroupPointer = 13,
GroupMemberPointer = 14,
}
Expand description
Specifies the authority type for SetAuthority instructions
Variants§
MintTokens = 0
Authority to mint new tokens
FreezeAccount = 1
Authority to freeze any account associated with the Mint
AccountOwner = 2
Owner of a given token account
CloseAccount = 3
Authority to close a token account
TransferFeeConfig = 4
Authority to set the transfer fee
WithheldWithdraw = 5
Authority to withdraw withheld tokens from a mint
CloseMint = 6
Authority to close a mint account
InterestRate = 7
Authority to set the interest rate
PermanentDelegate = 8
Authority to transfer or burn any tokens for a mint
ConfidentialTransferMint = 9
Authority to update confidential transfer mint and aprove accounts for confidential transfers
TransferHookProgramId = 10
Authority to set the transfer hook program id
ConfidentialTransferFeeConfig = 11
Authority to set the withdraw withheld authority encryption key
MetadataPointer = 12
Authority to set the metadata address
GroupPointer = 13
Authority to set the group address
GroupMemberPointer = 14
Authority to set the group member 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 for AuthorityType
impl PartialEq 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