pub struct UltraTokenAccount {
pub account: String,
pub amount: String,
pub decimals: f64,
pub is_associated_token_account: bool,
pub is_frozen: bool,
pub program_id: String,
pub ui_amount: f64,
pub ui_amount_string: String,
}Fields§
§account: StringThe token account address
amount: StringToken amount in atomic/raw units
decimals: f64Number of decimal places for the token
is_associated_token_account: boolWhether this is an associated token account
is_frozen: boolWhether the token account is frozen
program_id: StringThe token program ID
ui_amount: f64Token amount in UI units after applying decimals
ui_amount_string: StringToken amount as string in UI units after applying decimals
Trait Implementations§
Source§impl Clone for UltraTokenAccount
impl Clone for UltraTokenAccount
Source§fn clone(&self) -> UltraTokenAccount
fn clone(&self) -> UltraTokenAccount
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UltraTokenAccount
impl Debug for UltraTokenAccount
Source§impl<'de> Deserialize<'de> for UltraTokenAccount
impl<'de> Deserialize<'de> for UltraTokenAccount
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for UltraTokenAccount
impl RefUnwindSafe for UltraTokenAccount
impl Send for UltraTokenAccount
impl Sync for UltraTokenAccount
impl Unpin for UltraTokenAccount
impl UnsafeUnpin for UltraTokenAccount
impl UnwindSafe for UltraTokenAccount
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