pub struct WithdrawalRequest {
pub currency: String,
pub address: String,
pub amount: f64,
pub priority: Option<WithdrawalPriority>,
}Expand description
Withdrawal request
Used to submit a withdrawal via /private/withdraw.
Fields§
§currency: StringCurrency to withdraw (e.g., “BTC”, “ETH”)
address: StringDestination address (must be in address book)
amount: f64Amount to withdraw
priority: Option<WithdrawalPriority>Withdrawal priority (optional, BTC only)
Implementations§
Source§impl WithdrawalRequest
impl WithdrawalRequest
Sourcepub fn new(currency: String, address: String, amount: f64) -> Self
pub fn new(currency: String, address: String, amount: f64) -> Self
Create a new withdrawal request
Sourcepub fn with_priority(self, priority: WithdrawalPriority) -> Self
pub fn with_priority(self, priority: WithdrawalPriority) -> Self
Set withdrawal priority (BTC only)
Trait Implementations§
Source§impl Clone for WithdrawalRequest
impl Clone for WithdrawalRequest
Source§fn clone(&self) -> WithdrawalRequest
fn clone(&self) -> WithdrawalRequest
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 WithdrawalRequest
impl Debug for WithdrawalRequest
Source§impl<'de> Deserialize<'de> for WithdrawalRequest
impl<'de> Deserialize<'de> for WithdrawalRequest
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
Source§impl Display for WithdrawalRequest
impl Display for WithdrawalRequest
Source§impl PartialEq for WithdrawalRequest
impl PartialEq for WithdrawalRequest
Source§impl Serialize for WithdrawalRequest
impl Serialize for WithdrawalRequest
impl StructuralPartialEq for WithdrawalRequest
Auto Trait Implementations§
impl Freeze for WithdrawalRequest
impl RefUnwindSafe for WithdrawalRequest
impl Send for WithdrawalRequest
impl Sync for WithdrawalRequest
impl Unpin for WithdrawalRequest
impl UnsafeUnpin for WithdrawalRequest
impl UnwindSafe for WithdrawalRequest
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