Enum mpl_token_metadata::state::TokenState
source · #[repr(C)]
pub enum TokenState {
Unlocked,
Locked,
Listed,
}
Expand description
Programmable account state.
Variants§
Unlocked
Token account is unlocked; operations are allowed on this account.
Locked
Token account has been locked; no operations are allowed on this account.
Listed
Token account has a Sale
delegate set; operations are restricted.
Trait Implementations§
source§impl BorshDeserialize for TokenState
impl BorshDeserialize for TokenState
source§impl BorshSerialize for TokenState
impl BorshSerialize for TokenState
source§impl Clone for TokenState
impl Clone for TokenState
source§fn clone(&self) -> TokenState
fn clone(&self) -> TokenState
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 TokenState
impl Debug for TokenState
source§impl PartialEq<TokenState> for TokenState
impl PartialEq<TokenState> for TokenState
source§fn eq(&self, other: &TokenState) -> bool
fn eq(&self, other: &TokenState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.