Struct binance_spot_connector_rust::wallet::withdraw::Withdraw
source · pub struct Withdraw { /* private fields */ }
Expand description
POST /sapi/v1/capital/withdraw/apply
Submit a withdraw request.
- If
network
not send, return with default network of the coin. - You can get
network
andisDefault
innetworkList
of a coin in the response ofGet /sapi/v1/capital/config/getall (HMAC SHA256)
.
Weight(IP): 1
Example
use binance_spot_connector_rust::wallet;
use rust_decimal_macros::dec;
let request = wallet::withdraw("BNB", "address", dec!(1.01));
Implementations§
source§impl Withdraw
impl Withdraw
pub fn new(coin: &str, address: &str, amount: Decimal) -> Self
pub fn withdraw_order_id(self, withdraw_order_id: &str) -> Self
pub fn network(self, network: &str) -> Self
pub fn address_tag(self, address_tag: &str) -> Self
pub fn transaction_fee_flag(self, transaction_fee_flag: bool) -> Self
pub fn name(self, name: &str) -> Self
pub fn wallet_type(self, wallet_type: u32) -> Self
pub fn recv_window(self, recv_window: u64) -> Self
pub fn credentials(self, credentials: &Credentials) -> Self
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Withdraw
impl Send for Withdraw
impl Sync for Withdraw
impl Unpin for Withdraw
impl UnwindSafe for Withdraw
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