Enum safe_token::instruction::AuthorityType
source · #[repr(u8)]
pub enum AuthorityType {
MintTokens,
FreezeAccount,
AccountOwner,
CloseAccount,
}
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
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 ==
.