Enum spl_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
sourceimpl Clone for AccountType
impl Clone for AccountType
sourcefn clone(&self) -> AccountType
fn clone(&self) -> AccountType
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 AccountType
impl Debug for AccountType
sourceimpl Default for AccountType
impl Default for AccountType
sourceimpl From<AccountType> for u8
impl From<AccountType> for u8
sourcefn from(enum_value: AccountType) -> Self
fn from(enum_value: AccountType) -> Self
Performs the conversion.
sourceimpl PartialEq<AccountType> for AccountType
impl PartialEq<AccountType> for AccountType
sourceimpl TryFrom<u8> for AccountType
impl TryFrom<u8> for AccountType
type Error = TryFromPrimitiveError<Self>
type Error = TryFromPrimitiveError<Self>
The type returned in the event of a conversion error.
sourcefn try_from(number: u8) -> Result<Self, TryFromPrimitiveError<Self>>
fn try_from(number: u8) -> Result<Self, TryFromPrimitiveError<Self>>
Performs the conversion.
sourceimpl TryFromPrimitive for AccountType
impl TryFromPrimitive for AccountType
type Primitive = u8
const NAME: &'static str
fn try_from_primitive(
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for AccountType
impl StructuralPartialEq for AccountType
Auto Trait Implementations
impl RefUnwindSafe for AccountType
impl Send for AccountType
impl Sync for AccountType
impl Unpin for AccountType
impl UnwindSafe for AccountType
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more