#[repr(u8)]pub enum AuthorityType {
MintTokens = 0,
FreezeAccount = 1,
AccountOwner = 2,
CloseAccount = 3,
}
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
Trait Implementations§
§impl Clone for AuthorityType
impl Clone for AuthorityType
§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 more§impl Debug for AuthorityType
impl Debug for AuthorityType
§impl PartialEq for AuthorityType
impl PartialEq for AuthorityType
§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§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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