pub struct TokenCurrency {
pub chain_id: u32,
pub address: String,
pub symbol: String,
pub chain_name: Blockchain,
}Expand description
Binds a readable currency code to one token contract.
Precision and name belong to the associated Currency. Endpoint settings are not persisted.
Fields§
§chain_id: u32§address: String§symbol: String§chain_name: BlockchainImplementations§
Source§impl TokenCurrency
impl TokenCurrency
Trait Implementations§
Source§impl Clone for TokenCurrency
impl Clone for TokenCurrency
Source§impl Debug for TokenCurrency
impl Debug for TokenCurrency
Source§impl<'de> Deserialize<'de> for TokenCurrency
impl<'de> Deserialize<'de> for TokenCurrency
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
impl Eq for TokenCurrency
Source§impl From<&Token> for TokenCurrency
impl From<&Token> for TokenCurrency
Source§impl PartialEq for TokenCurrency
impl PartialEq for TokenCurrency
Source§impl Serialize for TokenCurrency
impl Serialize for TokenCurrency
impl StructuralPartialEq for TokenCurrency
Auto Trait Implementations§
impl Freeze for TokenCurrency
impl RefUnwindSafe for TokenCurrency
impl Send for TokenCurrency
impl Sync for TokenCurrency
impl Unpin for TokenCurrency
impl UnsafeUnpin for TokenCurrency
impl UnwindSafe for TokenCurrency
Blanket Implementations§
impl<T> Allocation for T
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more