Enum spl_token_2022::state::AccountState
source · [−]#[repr(u8)]
pub enum AccountState {
Uninitialized,
Initialized,
Frozen,
}
Expand description
Account state.
Variants
Uninitialized
Account is not yet initialized
Initialized
Account is initialized; the account owner and/or delegate may perform permitted operations on this account
Frozen
Account has been frozen by the mint freeze authority. Neither the account owner nor the delegate are able to perform operations on this account.
Trait Implementations
sourceimpl Clone for AccountState
impl Clone for AccountState
sourcefn clone(&self) -> AccountState
fn clone(&self) -> AccountState
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 AccountState
impl Debug for AccountState
sourceimpl Default for AccountState
impl Default for AccountState
sourceimpl From<AccountState> for u8
impl From<AccountState> for u8
sourcefn from(enum_value: AccountState) -> Self
fn from(enum_value: AccountState) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<AccountState> for AccountState
impl PartialEq<AccountState> for AccountState
sourceimpl TryFrom<u8> for AccountState
impl TryFrom<u8> for AccountState
type Error = TryFromPrimitiveError<AccountState>
type Error = TryFromPrimitiveError<AccountState>
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 AccountState
impl TryFromPrimitive for AccountState
type Primitive = u8
const NAME: &'static str = "AccountState"
fn try_from_primitive(
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for AccountState
impl StructuralPartialEq for AccountState
Auto Trait Implementations
impl RefUnwindSafe for AccountState
impl Send for AccountState
impl Sync for AccountState
impl Unpin for AccountState
impl UnwindSafe for AccountState
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
impl<T> Pointable for T
impl<T> Pointable for T
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