pub struct TokenBalance {
pub balance: u64,
pub mint: Pubkey,
}Fields§
§balance: u64§mint: PubkeyTrait Implementations§
Source§impl Clone for TokenBalance
impl Clone for TokenBalance
Source§fn clone(&self) -> TokenBalance
fn clone(&self) -> TokenBalance
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 TokenBalance
impl Debug for TokenBalance
Source§impl Default for TokenBalance
impl Default for TokenBalance
Source§fn default() -> TokenBalance
fn default() -> TokenBalance
Returns the “default value” for a type. Read more
Source§impl PartialEq for TokenBalance
impl PartialEq for TokenBalance
Source§impl TryFrom<&TokenBalance> for TokenBalance
impl TryFrom<&TokenBalance> for TokenBalance
Source§type Error = IndexerError
type Error = IndexerError
The type returned in the event of a conversion error.
impl StructuralPartialEq for TokenBalance
Auto Trait Implementations§
impl Freeze for TokenBalance
impl RefUnwindSafe for TokenBalance
impl Send for TokenBalance
impl Sync for TokenBalance
impl Unpin for TokenBalance
impl UnwindSafe for TokenBalance
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