Enum safe_token_2022::extension::AccountType
source · #[repr(u8)]
pub enum AccountType {
Uninitialized,
Mint,
Account,
}
Expand description
Different kinds of accounts. Note that Mint
, Account
, and Multisig
types
are determined exclusively by the size of the account, and are not included in
the account data. AccountType
is only included if extensions have been
initialized.
Variants§
Uninitialized
Marker for 0 data
Mint
Mint account with additional extensions
Account
Token holding account with additional extensions
Trait Implementations§
source§impl Clone for AccountType
impl Clone for AccountType
source§fn clone(&self) -> AccountType
fn clone(&self) -> AccountType
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 AccountType
impl Debug for AccountType
source§impl Default for AccountType
impl Default for AccountType
source§impl From<AccountType> for u8
impl From<AccountType> for u8
source§fn from(enum_value: AccountType) -> Self
fn from(enum_value: AccountType) -> Self
Converts to this type from the input type.
source§impl PartialEq<AccountType> for AccountType
impl PartialEq<AccountType> for AccountType
source§fn eq(&self, other: &AccountType) -> bool
fn eq(&self, other: &AccountType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<u8> for AccountType
impl TryFrom<u8> for AccountType
§type Error = TryFromPrimitiveError<AccountType>
type Error = TryFromPrimitiveError<AccountType>
The type returned in the event of a conversion error.