[−][src]Struct solana_exchange_api::exchange_state::TokenAccountInfo
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]
fn clone(&self) -> TokenAccountInfo
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for TokenAccountInfo
[src]
fn default() -> TokenAccountInfo
[src]
impl PartialEq<TokenAccountInfo> for TokenAccountInfo
[src]
fn eq(&self, other: &TokenAccountInfo) -> bool
[src]
fn ne(&self, other: &TokenAccountInfo) -> bool
[src]
impl Copy for TokenAccountInfo
[src]
impl Eq for TokenAccountInfo
[src]
impl Debug for TokenAccountInfo
[src]
impl Serialize for TokenAccountInfo
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for TokenAccountInfo
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Sync for TokenAccountInfo
impl Send for TokenAccountInfo
impl Unpin for TokenAccountInfo
impl RefUnwindSafe for TokenAccountInfo
impl UnwindSafe for TokenAccountInfo
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> Typeable for T where
T: Any,
T: Any,
impl<T> Clear for T where
T: InitializableFromZeroed + ?Sized,
T: InitializableFromZeroed + ?Sized,
fn clear(&mut self)
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> InitializableFromZeroed for T where
T: Default,
T: Default,
unsafe fn initialize(place: *mut T)
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> Erased for T
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,