#[repr(u8)]pub enum AccountType {
Uninitialized = 0,
Mint = 1,
Account = 2,
}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 = 0
Marker for 0 data
Mint = 1
Mint account with additional extensions
Account = 2
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 duplicate 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 for AccountType
impl PartialEq for AccountType
Source§impl TryFrom<u8> for AccountType
impl TryFrom<u8> for AccountType
Source§type Error = TryFromPrimitiveError<AccountType>
type Error = TryFromPrimitiveError<AccountType>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for AccountType
impl TryFromPrimitive for AccountType
const NAME: &'static str = "AccountType"
type Primitive = u8
type Error = TryFromPrimitiveError<AccountType>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for AccountType
impl StructuralPartialEq for AccountType
Auto Trait Implementations§
impl Freeze for AccountType
impl RefUnwindSafe for AccountType
impl Send for AccountType
impl Sync for AccountType
impl Unpin for AccountType
impl UnwindSafe for AccountType
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more