pub struct TokenAccount {
pub token: TokenData,
pub account: CompressedAccount,
}Fields§
§token: TokenDataToken-specific data (mint, owner, amount, delegate, state, tlv)
account: CompressedAccountGeneral account information (address, hash, lamports, merkle context, etc.)
Trait Implementations§
Source§impl Clone for TokenAccount
impl Clone for TokenAccount
Source§fn clone(&self) -> TokenAccount
fn clone(&self) -> TokenAccount
Returns a duplicate 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 TokenAccount
impl Debug for TokenAccount
Source§impl Default for TokenAccount
impl Default for TokenAccount
Source§fn default() -> TokenAccount
fn default() -> TokenAccount
Returns the “default value” for a type. Read more
Source§impl Into<TokenDataWithMerkleContext> for TokenAccount
impl Into<TokenDataWithMerkleContext> for TokenAccount
Source§fn into(self) -> TokenDataWithMerkleContext
fn into(self) -> TokenDataWithMerkleContext
Converts this type into the (usually inferred) input type.
Source§impl PartialEq for TokenAccount
impl PartialEq for TokenAccount
Source§impl TryFrom<&TokenAccount> for TokenAccount
impl TryFrom<&TokenAccount> for TokenAccount
Source§type Error = IndexerError
type Error = IndexerError
The type returned in the event of a conversion error.
Source§impl TryFrom<&TokenAccountV2> for TokenAccount
impl TryFrom<&TokenAccountV2> for TokenAccount
Source§type Error = IndexerError
type Error = IndexerError
The type returned in the event of a conversion error.
Source§impl TryFrom<TokenDataWithMerkleContext> for TokenAccount
impl TryFrom<TokenDataWithMerkleContext> for TokenAccount
Source§type Error = IndexerError
type Error = IndexerError
The type returned in the event of a conversion error.
impl StructuralPartialEq for TokenAccount
Auto Trait Implementations§
impl Freeze for TokenAccount
impl RefUnwindSafe for TokenAccount
impl Send for TokenAccount
impl Sync for TokenAccount
impl Unpin for TokenAccount
impl UnwindSafe for TokenAccount
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more