pub struct Token {
pub id: Option<String>,
pub blockchain: Blockchain,
pub is_native: bool,
pub name: Option<String>,
pub standard: Option<TokenStandard>,
pub decimals: Option<i32>,
pub symbol: Option<String>,
pub token_address: Option<String>,
pub update_date: Option<String>,
pub create_date: Option<String>,
}Expand description
A blockchain token definition.
Fields§
§id: Option<String>Unique token ID.
blockchain: BlockchainBlockchain network the token lives on.
is_native: boolWhether this token is the native coin of its chain.
name: Option<String>Token name (e.g. "USD Coin").
standard: Option<TokenStandard>Token standard.
decimals: Option<i32>Number of decimal places.
symbol: Option<String>Chain symbol (e.g. "USDC").
token_address: Option<String>Contract address (absent for native coins).
update_date: Option<String>ISO-8601 last-update timestamp.
create_date: Option<String>ISO-8601 creation timestamp.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Token
impl<'de> Deserialize<'de> for Token
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 Token
impl RefUnwindSafe for Token
impl Send for Token
impl Sync for Token
impl Unpin for Token
impl UnsafeUnpin for Token
impl UnwindSafe for Token
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