pub struct Token {
pub id: 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: String,
pub create_date: String,
}Expand description
On-chain token descriptor.
Fields§
§id: StringCircle-assigned token ID.
blockchain: BlockchainBlockchain this token lives on.
is_native: booltrue if this is the native coin of the chain (e.g. ETH, MATIC).
name: Option<String>Human-readable token name.
standard: Option<TokenStandard>Token standard.
decimals: Option<i32>Number of decimal places.
symbol: Option<String>Token ticker symbol.
token_address: Option<String>On-chain contract address (absent for native coins).
update_date: StringISO 8601 last-updated timestamp.
create_date: StringISO 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