pub struct CreateTradingWithdrawParams {
pub asset_id: u32,
pub amount: AssetAmount,
pub payload_signature: Vec<u8>,
pub destination_address: String,
pub idempotency_key: String,
pub amount_scale: Option<u32>,
pub deadline_ts_sec: Option<u64>,
pub nonce: u128,
}Expand description
Typed trading-withdraw create params.
Fields§
§asset_id: u32§amount: AssetAmount§payload_signature: Vec<u8>§destination_address: String§idempotency_key: StringStable key for this logical withdrawal. Persist it and reuse it for every retry; generating a new key per attempt defeats deduplication.
amount_scale: Option<u32>Input amount scale when amount does not carry one. Wire amount_e18
is always rescaled exactly to 18 decimals.
deadline_ts_sec: Option<u64>Exact deadline covered by payload_signature. Required for this
precomputed-signature path.
nonce: u128Non-zero nonce included in the signed withdrawal payload.
Trait Implementations§
Source§impl Clone for CreateTradingWithdrawParams
impl Clone for CreateTradingWithdrawParams
Source§fn clone(&self) -> CreateTradingWithdrawParams
fn clone(&self) -> CreateTradingWithdrawParams
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 moreAuto Trait Implementations§
impl Freeze for CreateTradingWithdrawParams
impl RefUnwindSafe for CreateTradingWithdrawParams
impl Send for CreateTradingWithdrawParams
impl Sync for CreateTradingWithdrawParams
impl Unpin for CreateTradingWithdrawParams
impl UnsafeUnpin for CreateTradingWithdrawParams
impl UnwindSafe for CreateTradingWithdrawParams
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