pub struct InitiateWithdrawalRequest {
pub amount: Option<String>,
pub asset_id: Option<Uuid>,
pub destination: Option<String>,
pub source: Option<String>,
}Expand description
InitiateWithdrawalRequest
JSON schema
{
"type": "object",
"properties": {
"amount": {
"description": "Raw token amount in the smallest unit (e.g. wei) as a stringified positive integer",
"examples": [
"1000000000000000000"
],
"type": [
"string",
"null"
]
},
"assetId": {
"description": "UUID of the asset to withdraw",
"examples": [
"123e4567-e89b-12d3-a456-426614174000"
],
"type": [
"string",
"null"
],
"format": "uuid"
},
"destination": {
"description": "On-chain address that will receive the withdrawal (EVM, 42 chars including 0x)",
"examples": [
"0x742d35cc6634c0532925a3b8d4060f31e2c3d8b5"
],
"type": [
"string",
"null"
]
},
"source": {
"description": "Source ledger to withdraw from: \"spot\" (default) debits spot balance; \"margin\" directly debits withdrawable collateral from the parent margin account",
"examples": [
"spot"
],
"type": [
"string",
"null"
]
}
}
}Fields§
§amount: Option<String>Raw token amount in the smallest unit (e.g. wei) as a stringified positive integer
asset_id: Option<Uuid>UUID of the asset to withdraw
destination: Option<String>On-chain address that will receive the withdrawal (EVM, 42 chars including 0x)
source: Option<String>Source ledger to withdraw from: “spot” (default) debits spot balance; “margin” directly debits withdrawable collateral from the parent margin account
Trait Implementations§
Source§impl Clone for InitiateWithdrawalRequest
impl Clone for InitiateWithdrawalRequest
Source§fn clone(&self) -> InitiateWithdrawalRequest
fn clone(&self) -> InitiateWithdrawalRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InitiateWithdrawalRequest
impl Debug for InitiateWithdrawalRequest
Source§impl Default for InitiateWithdrawalRequest
impl Default for InitiateWithdrawalRequest
Source§impl<'de> Deserialize<'de> for InitiateWithdrawalRequest
impl<'de> Deserialize<'de> for InitiateWithdrawalRequest
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 InitiateWithdrawalRequest
impl RefUnwindSafe for InitiateWithdrawalRequest
impl Send for InitiateWithdrawalRequest
impl Sync for InitiateWithdrawalRequest
impl Unpin for InitiateWithdrawalRequest
impl UnsafeUnpin for InitiateWithdrawalRequest
impl UnwindSafe for InitiateWithdrawalRequest
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