#[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§
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
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)