[][src]Struct solana_exchange_program::exchange_state::TokenAccountInfo

pub struct TokenAccountInfo {
    pub owner: Pubkey,
    pub tokens: Tokens,
}

Token accounts are populated with this structure

Fields

owner: Pubkey

Investor who owns this account

tokens: Tokens

Current number of tokens this account holds

Methods

impl TokenAccountInfo[src]

pub fn owner(self, owner: &Pubkey) -> Self[src]

pub fn tokens(self, a: u64, b: u64, c: u64, d: u64) -> Self[src]

Trait Implementations

impl Clone for TokenAccountInfo[src]

impl Copy for TokenAccountInfo[src]

impl Debug for TokenAccountInfo[src]

impl Default for TokenAccountInfo[src]

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

impl Eq for TokenAccountInfo[src]

impl PartialEq<TokenAccountInfo> for TokenAccountInfo[src]

impl Serialize for TokenAccountInfo[src]

impl StructuralEq for TokenAccountInfo[src]

impl StructuralPartialEq for TokenAccountInfo[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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

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

impl<T> InitializableFromZeroed for T where
    T: Default

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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.