pub struct CurrencyStruct {Show 13 fields
pub currency: String,
pub currency_long: String,
pub decimals: Option<u32>,
pub fee_precision: Option<u32>,
pub min_confirmations: u32,
pub min_withdrawal_fee: f64,
pub withdrawal_fee: f64,
pub withdrawal_priorities: Vec<WithdrawalPriority>,
pub apr: Option<f64>,
pub coin_type: Option<String>,
pub network_fee: Option<f64>,
pub network_currency: Option<String>,
pub in_cross_collateral_pool: Option<bool>,
}Expand description
Currency structure
Fields§
§currency: StringCurrency symbol (BTC, ETH, etc.)
currency_long: StringLong currency name
decimals: Option<u32>Number of decimal places for the currency
fee_precision: Option<u32>Fee precision (decimal places)
min_confirmations: u32Minimum confirmations required
min_withdrawal_fee: f64Minimum withdrawal fee
withdrawal_fee: f64Standard withdrawal fee
withdrawal_priorities: Vec<WithdrawalPriority>Withdrawal priorities
apr: Option<f64>APR for yield-generating tokens
coin_type: Option<String>Coin type identifier (e.g., “BTC”, “ETH”, “USDC”)
network_fee: Option<f64>Network fee
network_currency: Option<String>Network currency used for fees
in_cross_collateral_pool: Option<bool>Whether the currency is part of the cross collateral pool
Trait Implementations§
Source§impl Clone for CurrencyStruct
impl Clone for CurrencyStruct
Source§fn clone(&self) -> CurrencyStruct
fn clone(&self) -> CurrencyStruct
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 CurrencyStruct
impl Debug for CurrencyStruct
Source§impl<'de> Deserialize<'de> for CurrencyStruct
impl<'de> Deserialize<'de> for CurrencyStruct
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
Source§impl Display for CurrencyStruct
impl Display for CurrencyStruct
Auto Trait Implementations§
impl Freeze for CurrencyStruct
impl RefUnwindSafe for CurrencyStruct
impl Send for CurrencyStruct
impl Sync for CurrencyStruct
impl Unpin for CurrencyStruct
impl UnwindSafe for CurrencyStruct
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.