pub struct NetworkInfo {
pub network: String,
pub name: String,
pub withdraw_fee: f64,
pub withdraw_min: f64,
pub withdraw_max: f64,
pub deposit_enable: bool,
pub withdraw_enable: bool,
pub deposit_confirmations: Option<u32>,
pub withdraw_confirmations: Option<u32>,
}Expand description
Blockchain network information.
Describes deposit and withdrawal details for a specific blockchain network.
Fields§
§network: StringNetwork identifier (e.g., BTC, ETH, TRC20, BEP20).
name: StringNetwork name (e.g., Bitcoin, Ethereum).
withdraw_fee: f64Withdrawal fee for this network.
withdraw_min: f64Minimum withdrawal amount for this network.
withdraw_max: f64Maximum withdrawal amount for this network.
deposit_enable: boolWhether deposits are enabled on this network.
withdraw_enable: boolWhether withdrawals are enabled on this network.
deposit_confirmations: Option<u32>Number of confirmations required for deposit credit.
withdraw_confirmations: Option<u32>Number of confirmations required for withdrawal unlock.
Implementations§
Trait Implementations§
Source§impl Clone for NetworkInfo
impl Clone for NetworkInfo
Source§fn clone(&self) -> NetworkInfo
fn clone(&self) -> NetworkInfo
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 NetworkInfo
impl Debug for NetworkInfo
Source§impl<'de> Deserialize<'de> for NetworkInfo
impl<'de> Deserialize<'de> for NetworkInfo
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<NetworkInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<NetworkInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for NetworkInfo
impl Serialize for NetworkInfo
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
Auto Trait Implementations§
impl Freeze for NetworkInfo
impl RefUnwindSafe for NetworkInfo
impl Send for NetworkInfo
impl Sync for NetworkInfo
impl Unpin for NetworkInfo
impl UnwindSafe for NetworkInfo
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