pub struct SpotToken {
pub name: String,
pub sz_decimals: u32,
pub wei_decimals: u32,
pub index: u32,
pub token_id: String,
pub is_canonical: bool,
pub evm_contract: Option<EvmContract>,
pub full_name: Option<String>,
pub deployer_trading_fee_share: Option<String>,
}Expand description
A single spot token from the tokens list.
Fields§
§name: StringToken name (e.g., “USDC”).
sz_decimals: u32Number of decimal places for size.
wei_decimals: u32Wei decimals (on-chain precision).
index: u32Token index used for pair references.
token_id: StringToken contract ID/address.
is_canonical: boolWhether this is the canonical token.
evm_contract: Option<EvmContract>Optional EVM contract information.
full_name: Option<String>Optional full name.
Optional deployer trading fee share.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SpotToken
impl<'de> Deserialize<'de> for SpotToken
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 SpotToken
impl RefUnwindSafe for SpotToken
impl Send for SpotToken
impl Sync for SpotToken
impl Unpin for SpotToken
impl UnsafeUnpin for SpotToken
impl UnwindSafe for SpotToken
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