pub struct SubAccountTransferRequest<'a> { /* private fields */ }Expand description
Request body for SubAccount::transfer_between_subaccounts.
Implementations§
Source§impl<'a> SubAccountTransferRequest<'a>
impl<'a> SubAccountTransferRequest<'a>
Sourcepub fn new(
ccy: impl Into<Cow<'a, str>>,
amt: impl Into<Cow<'a, str>>,
from: SubAccountType,
to: SubAccountType,
from_sub_account: impl Into<Cow<'a, str>>,
to_sub_account: impl Into<Cow<'a, str>>,
) -> Self
pub fn new( ccy: impl Into<Cow<'a, str>>, amt: impl Into<Cow<'a, str>>, from: SubAccountType, to: SubAccountType, from_sub_account: impl Into<Cow<'a, str>>, to_sub_account: impl Into<Cow<'a, str>>, ) -> 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: bool) -> Self
pub fn omit_pos_risk(self, omit_pos_risk: bool) -> Self
Whether to ignore position risk when transferring.
Trait Implementations§
Source§impl<'a> Clone for SubAccountTransferRequest<'a>
impl<'a> Clone for SubAccountTransferRequest<'a>
Source§fn clone(&self) -> SubAccountTransferRequest<'a>
fn clone(&self) -> SubAccountTransferRequest<'a>
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<'a> Debug for SubAccountTransferRequest<'a>
impl<'a> Debug for SubAccountTransferRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for SubAccountTransferRequest<'a>
impl<'a> RefUnwindSafe for SubAccountTransferRequest<'a>
impl<'a> Send for SubAccountTransferRequest<'a>
impl<'a> Sync for SubAccountTransferRequest<'a>
impl<'a> Unpin for SubAccountTransferRequest<'a>
impl<'a> UnsafeUnpin for SubAccountTransferRequest<'a>
impl<'a> UnwindSafe for SubAccountTransferRequest<'a>
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