Enum safe_token::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§
source§impl Clone for AccountState
impl Clone for AccountState
source§fn clone(&self) -> AccountState
fn clone(&self) -> AccountState
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 AccountState
impl Debug for AccountState
source§impl Default for AccountState
impl Default for AccountState
source§impl PartialEq<AccountState> for AccountState
impl PartialEq<AccountState> for AccountState
source§fn eq(&self, other: &AccountState) -> bool
fn eq(&self, other: &AccountState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl 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.