#[non_exhaustive]pub struct Currency {
pub ccy: String,
pub name: String,
pub chain: String,
pub min_wd: NumberString,
pub min_dep: NumberString,
pub min_fee: NumberString,
pub can_dep: bool,
pub can_wd: bool,
pub can_internal: bool,
}Expand description
Currency metadata and chain settings.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.ccy: StringCurrency code.
name: StringDisplay name.
chain: StringChain name.
min_wd: NumberStringMinimum withdrawal amount.
min_dep: NumberStringMinimum deposit amount.
min_fee: NumberStringWithdrawal fee.
can_dep: boolWhether deposit is enabled.
can_wd: boolWhether withdrawal is enabled.
can_internal: boolWhether internal transfer is enabled.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Currency
impl<'de> Deserialize<'de> for Currency
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 Currency
impl RefUnwindSafe for Currency
impl Send for Currency
impl Sync for Currency
impl Unpin for Currency
impl UnsafeUnpin for Currency
impl UnwindSafe for Currency
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