pub struct PreparedTradingWithdraw { /* private fields */ }Expand description
Exact API-key signed withdraw request prepared for durable persistence and retry.
Implementations§
Source§impl PreparedTradingWithdraw
impl PreparedTradingWithdraw
Sourcepub fn from_request_bytes(bytes: &[u8]) -> Result<Self>
pub fn from_request_bytes(bytes: &[u8]) -> Result<Self>
Restore a prepared request previously persisted with Self::request_bytes.
pub fn payload(&self) -> &TradingWithdrawIntentPayload
pub fn payload_signature(&self) -> &[u8] ⓘ
Sourcepub fn deterministic_payload_bytes(&self) -> Vec<u8> ⓘ
pub fn deterministic_payload_bytes(&self) -> Vec<u8> ⓘ
Exact deterministic protobuf bytes covered by payload_signature.
Sourcepub fn request_bytes(&self) -> Vec<u8> ⓘ
pub fn request_bytes(&self) -> Vec<u8> ⓘ
Canonical bytes to persist before first submission and reuse on retries.
Trait Implementations§
Source§impl Clone for PreparedTradingWithdraw
impl Clone for PreparedTradingWithdraw
Source§fn clone(&self) -> PreparedTradingWithdraw
fn clone(&self) -> PreparedTradingWithdraw
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 PreparedTradingWithdraw
impl RefUnwindSafe for PreparedTradingWithdraw
impl Send for PreparedTradingWithdraw
impl Sync for PreparedTradingWithdraw
impl Unpin for PreparedTradingWithdraw
impl UnsafeUnpin for PreparedTradingWithdraw
impl UnwindSafe for PreparedTradingWithdraw
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