Enum spl_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
sourceimpl Clone for AuthorityType
impl Clone for AuthorityType
sourcefn clone(&self) -> AuthorityType
fn clone(&self) -> AuthorityType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AuthorityType
impl Debug for AuthorityType
sourceimpl PartialEq<AuthorityType> for AuthorityType
impl PartialEq<AuthorityType> for AuthorityType
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
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more