pub struct NativeCurrency {
pub name: String,
pub symbol: String,
pub decimals: u8,
}Expand description
A Chain’s native currency.
Fields§
§name: StringName of the native currency.
symbol: StringSymbol of the native currency.
decimals: u8Decimals of the native currency.
Trait Implementations§
Source§impl Clone for NativeCurrency
impl Clone for NativeCurrency
Source§fn clone(&self) -> NativeCurrency
fn clone(&self) -> NativeCurrency
Returns a duplicate of the value. Read more
1.0.0 · 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 NativeCurrency
impl Debug for NativeCurrency
Source§impl<'de> Deserialize<'de> for NativeCurrency
impl<'de> Deserialize<'de> for NativeCurrency
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 NativeCurrency
impl RefUnwindSafe for NativeCurrency
impl Send for NativeCurrency
impl Sync for NativeCurrency
impl Unpin for NativeCurrency
impl UnwindSafe for NativeCurrency
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