pub struct Names {
pub markets: BTreeMap<u32, Market>,
pub tokens: BTreeMap<u64, TokenName>,
pub dexes: Vec<String>,
}Expand description
What a network calls its markets, tokens and dexes, to put names to ids.
Fields§
§markets: BTreeMap<u32, Market>By the asset id an order names a market by.
tokens: BTreeMap<u64, TokenName>By token index.
dexes: Vec<String>The HIP-3 dexes in perpDexs order, the main dex left out.
Implementations§
Trait Implementations§
impl Eq for Names
impl StructuralPartialEq for Names
Auto Trait Implementations§
impl Freeze for Names
impl RefUnwindSafe for Names
impl Send for Names
impl Sync for Names
impl Unpin for Names
impl UnsafeUnpin for Names
impl UnwindSafe for Names
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.