pub struct CurrencyNetwork {
pub network: String,
pub id: Option<String>,
pub name: Option<String>,
pub active: bool,
pub deposit: bool,
pub withdraw: bool,
pub fee: Option<Decimal>,
pub precision: Option<Decimal>,
pub limits: MinMax,
pub info: HashMap<String, Value>,
}Expand description
Currency network/chain information
Fields§
§network: StringNetwork name (e.g., “ERC20”, “TRC20”, “BEP20”)
id: Option<String>Network ID on exchange
name: Option<String>Network name on exchange
active: boolIs network active for deposits/withdrawals
deposit: boolDeposit enabled
withdraw: boolWithdrawal enabled
fee: Option<Decimal>Withdrawal fee
precision: Option<Decimal>Precision for this network
limits: MinMaxWithdrawal limits
info: HashMap<String, Value>Additional network info
Implementations§
Source§impl CurrencyNetwork
impl CurrencyNetwork
Sourcepub fn new(network: String) -> CurrencyNetwork
pub fn new(network: String) -> CurrencyNetwork
Create a new currency network
Trait Implementations§
Source§impl Clone for CurrencyNetwork
impl Clone for CurrencyNetwork
Source§fn clone(&self) -> CurrencyNetwork
fn clone(&self) -> CurrencyNetwork
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 CurrencyNetwork
impl Debug for CurrencyNetwork
Source§impl<'de> Deserialize<'de> for CurrencyNetwork
impl<'de> Deserialize<'de> for CurrencyNetwork
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CurrencyNetwork, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CurrencyNetwork, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CurrencyNetwork
impl PartialEq for CurrencyNetwork
Source§impl Serialize for CurrencyNetwork
impl Serialize for CurrencyNetwork
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for CurrencyNetwork
impl StructuralPartialEq for CurrencyNetwork
Auto Trait Implementations§
impl Freeze for CurrencyNetwork
impl RefUnwindSafe for CurrencyNetwork
impl Send for CurrencyNetwork
impl Sync for CurrencyNetwork
impl Unpin for CurrencyNetwork
impl UnwindSafe for CurrencyNetwork
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