pub struct ChainCurrency {
pub name: String,
pub symbol: String,
pub decimals: i64,
}Expand description
A chain’s native currency.
Fields§
§name: StringThe currency name (e.g. Ether).
symbol: StringThe currency symbol (e.g. ETH).
decimals: i64The number of decimals.
Trait Implementations§
Source§impl Clone for ChainCurrency
impl Clone for ChainCurrency
Source§fn clone(&self) -> ChainCurrency
fn clone(&self) -> ChainCurrency
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChainCurrency
impl Debug for ChainCurrency
Source§impl<'de> Deserialize<'de> for ChainCurrency
impl<'de> Deserialize<'de> for ChainCurrency
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 ChainCurrency
impl RefUnwindSafe for ChainCurrency
impl Send for ChainCurrency
impl Sync for ChainCurrency
impl Unpin for ChainCurrency
impl UnsafeUnpin for ChainCurrency
impl UnwindSafe for ChainCurrency
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