pub struct SubAccountTransferRequest { /* private fields */ }Expand description
Request body for SubAccount::transfer_between_subaccounts.
Implementations§
Source§impl SubAccountTransferRequest
impl SubAccountTransferRequest
Sourcepub fn new(
ccy: impl Into<String>,
amt: impl Into<String>,
from: SubAccountType,
to: SubAccountType,
from_sub_account: impl Into<String>,
to_sub_account: impl Into<String>,
) -> Self
pub fn new( ccy: impl Into<String>, amt: impl Into<String>, from: SubAccountType, to: SubAccountType, from_sub_account: impl Into<String>, to_sub_account: impl Into<String>, ) -> Self
Transfer amt of ccy between sub-accounts.
from / to select the account type on each side:
SubAccountType::Funding or SubAccountType::Trading.
Sourcepub fn loan_trans(self, loan_trans: bool) -> Self
pub fn loan_trans(self, loan_trans: bool) -> Self
Whether to transfer with borrowing.
Sourcepub fn omit_pos_risk(self, omit_pos_risk: impl Into<String>) -> Self
pub fn omit_pos_risk(self, omit_pos_risk: impl Into<String>) -> Self
Whether to ignore position risk when transferring.
Trait Implementations§
Source§impl Clone for SubAccountTransferRequest
impl Clone for SubAccountTransferRequest
Source§fn clone(&self) -> SubAccountTransferRequest
fn clone(&self) -> SubAccountTransferRequest
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 SubAccountTransferRequest
impl Debug for SubAccountTransferRequest
Auto Trait Implementations§
impl Freeze for SubAccountTransferRequest
impl RefUnwindSafe for SubAccountTransferRequest
impl Send for SubAccountTransferRequest
impl Sync for SubAccountTransferRequest
impl Unpin for SubAccountTransferRequest
impl UnsafeUnpin for SubAccountTransferRequest
impl UnwindSafe for SubAccountTransferRequest
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