pub struct WithdrawRequest {
pub currency: String,
pub address: String,
pub amount: f64,
pub priority: Option<WithdrawalPriorityLevel>,
}Expand description
Request parameters for withdrawing funds.
Used with the /private/withdraw endpoint.
Fields§
§currency: StringCurrency symbol (e.g., “BTC”, “ETH”, “USDC”)
address: StringWithdrawal address (must be in address book)
amount: f64Amount to withdraw
priority: Option<WithdrawalPriorityLevel>Withdrawal priority level (affects fees and confirmation time)
Implementations§
Source§impl WithdrawRequest
impl WithdrawRequest
Sourcepub fn new(currency: String, address: String, amount: f64) -> Self
pub fn new(currency: String, address: String, amount: f64) -> Self
Creates a new withdrawal request.
Sourcepub fn with_priority(self, priority: WithdrawalPriorityLevel) -> Self
pub fn with_priority(self, priority: WithdrawalPriorityLevel) -> Self
Sets the withdrawal priority level.
Trait Implementations§
Source§impl Clone for WithdrawRequest
impl Clone for WithdrawRequest
Source§fn clone(&self) -> WithdrawRequest
fn clone(&self) -> WithdrawRequest
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 WithdrawRequest
impl Debug for WithdrawRequest
Source§impl<'de> Deserialize<'de> for WithdrawRequest
impl<'de> Deserialize<'de> for WithdrawRequest
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
Auto Trait Implementations§
impl Freeze for WithdrawRequest
impl RefUnwindSafe for WithdrawRequest
impl Send for WithdrawRequest
impl Sync for WithdrawRequest
impl Unpin for WithdrawRequest
impl UnsafeUnpin for WithdrawRequest
impl UnwindSafe for WithdrawRequest
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