[][src]Enum solana_exchange_api::exchange_state::ExchangeState

pub enum ExchangeState {
    Unallocated,
    Account(TokenAccountInfo),
    Trade(OrderInfo),
    Invalid,
}

Type of exchange account, account's user data is populated with this enum

Variants

Unallocated

Account's Userdata is unallocated

Trade(OrderInfo)
Invalid

Trait Implementations

impl Clone for ExchangeState[src]

impl Copy for ExchangeState[src]

impl Default for ExchangeState[src]

impl Eq for ExchangeState[src]

impl PartialEq<ExchangeState> for ExchangeState[src]

impl Debug for ExchangeState[src]

impl StructuralPartialEq for ExchangeState[src]

impl StructuralEq for ExchangeState[src]

impl Serialize for ExchangeState[src]

impl<'de> Deserialize<'de> for ExchangeState[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Clear for T where
    T: InitializableFromZeroed + ?Sized

impl<T> InitializableFromZeroed for T where
    T: Default

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err