#[repr(u8)]pub enum AuthorityType {
Show 17 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,
ScaledUiAmount = 15,
Pause = 16,
}
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 approve 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
ScaledUiAmount = 15
Authority to set the UI amount scale
Pause = 16
Authority to pause or resume minting / transferring / burning
Trait Implementations§
Source§impl Clone for AuthorityType
impl Clone for AuthorityType
Source§fn clone(&self) -> AuthorityType
fn clone(&self) -> AuthorityType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for AuthorityType
impl Debug for AuthorityType
Source§impl PartialEq for AuthorityType
impl PartialEq for AuthorityType
impl StructuralPartialEq for AuthorityType
Auto Trait Implementations§
impl Freeze for AuthorityType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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