pub struct UiTokenAmount {
pub ui_amount: Option<f64>,
pub decimals: u8,
pub amount: StringAmount,
pub ui_amount_string: StringDecimals,
}
Fields§
§ui_amount: Option<f64>
§decimals: u8
§amount: StringAmount
§ui_amount_string: StringDecimals
Implementations§
source§impl UiTokenAmount
impl UiTokenAmount
pub fn real_number_string(&self) -> String
pub fn real_number_string_trimmed(&self) -> String
Trait Implementations§
source§impl Clone for UiTokenAmount
impl Clone for UiTokenAmount
source§fn clone(&self) -> UiTokenAmount
fn clone(&self) -> UiTokenAmount
Returns a copy 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 UiTokenAmount
impl Debug for UiTokenAmount
source§impl<'de> Deserialize<'de> for UiTokenAmount
impl<'de> Deserialize<'de> for UiTokenAmount
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
source§impl PartialEq<UiTokenAmount> for UiTokenAmount
impl PartialEq<UiTokenAmount> for UiTokenAmount
source§fn eq(&self, other: &UiTokenAmount) -> bool
fn eq(&self, other: &UiTokenAmount) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.