Enum spl_token::state::AccountState [−][src]
#[repr(u8)] pub enum AccountState { Uninitialized, Initialized, Frozen, }
Expand description
Account state.
Variants
Expand description
Account is not yet initialized
Expand description
Account is initialized; the account owner and/or delegate may perform permitted operations on this account
Expand description
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
impl Clone for AccountState
[src]
impl Clone for AccountState
[src]fn clone(&self) -> AccountState
[src]
fn clone(&self) -> AccountState
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for AccountState
[src]
impl Debug for AccountState
[src]impl Default for AccountState
[src]
impl Default for AccountState
[src]impl PartialEq<AccountState> for AccountState
[src]
impl PartialEq<AccountState> for AccountState
[src]impl TryFrom<u8> for AccountState
[src]
impl TryFrom<u8> for AccountState
[src]type Error = TryFromPrimitiveError<Self>
type Error = TryFromPrimitiveError<Self>
The type returned in the event of a conversion error.
fn try_from(number: u8) -> Result<Self, TryFromPrimitiveError<Self>>
[src]
fn try_from(number: u8) -> Result<Self, TryFromPrimitiveError<Self>>
[src]Performs the conversion.
impl TryFromPrimitive for AccountState
[src]
impl TryFromPrimitive for AccountState
[src]type Primitive = u8
const NAME: &'static str
[src]
fn try_from_primitive(
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
[src]
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for AccountState
[src]
impl StructuralPartialEq for AccountState
[src]
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
pub default fn example() -> T
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,