pub struct WithdrawParams {
pub coin: String,
pub address: String,
pub amount: Decimal,
pub withdraw_order_id: Option<String>,
pub network: Option<String>,
pub address_tag: Option<String>,
pub transaction_fee_flag: Option<bool>,
pub name: Option<String>,
pub wallet_type: Option<i64>,
pub recv_window: Option<i64>,
}Expand description
Request parameters for the [withdraw] operation.
This struct holds all of the inputs you can pass when calling
withdraw.
Fields§
§coin: StringThe coin parameter.
This field is **required.
address: StringThe address parameter.
This field is **required.
amount: DecimalThe amount parameter.
This field is **required.
withdraw_order_id: Option<String>client side id for withdrawal, if provided in POST /sapi/v1/capital/withdraw/apply, can be used here for query.
This field is **optional.
network: Option<String>The network parameter.
This field is **optional.
address_tag: Option<String>Secondary address identifier for coins like XRP,XMR etc.
This field is **optional.
transaction_fee_flag: Option<bool>When making internal transfer, true for returning the fee to the destination account; false for returning the fee back to the departure account. Default false.
This field is **optional.
name: Option<String>Description of the address. Address book cap is 200, space in name should be encoded into %20
This field is **optional.
wallet_type: Option<i64>The wallet type for withdraw,0-spot wallet ,1-funding wallet. Default walletType is the current “selected wallet” under wallet->Fiat and Spot/Funding->Deposit
This field is **optional.
recv_window: Option<i64>The recv_window parameter.
This field is **optional.
Implementations§
Trait Implementations§
Source§impl Clone for WithdrawParams
impl Clone for WithdrawParams
Source§fn clone(&self) -> WithdrawParams
fn clone(&self) -> WithdrawParams
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more