pub struct Token {
pub name: &'static str,
pub index: u32,
pub token_id: &'static str,
pub wire: &'static str,
pub wei_decimals: u32,
}Expand description
A spot token as the venue names it in each place it appears.
Fields§
§name: &'static str§index: u32token in spotClearinghouseState, and the index in spotMeta.
token_id: &'static str§wire: &'static strNAME:0x<tokenId>, how a transfer names the token.
wei_decimals: u32The decimals the venue counts the token in.
Trait Implementations§
impl Copy for Token
impl Eq for Token
Source§impl From<Token> for SpotToken
USDC or HYPE from the network itself, with no link to HyperEVM read: HYPE
needs none, and USDC does not cross here.
impl From<Token> for SpotToken
USDC or HYPE from the network itself, with no link to HyperEVM read: HYPE needs none, and USDC does not cross here.
impl StructuralPartialEq for Token
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.