pub struct FundsTransferRequest<'a> { /* private fields */ }Expand description
Request body for Funding::funds_transfer.
Implementations§
Source§impl<'a> FundsTransferRequest<'a>
impl<'a> FundsTransferRequest<'a>
Sourcepub fn new(
ccy: impl Into<Cow<'a, str>>,
amt: impl Into<Cow<'a, str>>,
from_account: impl Into<Cow<'a, str>>,
to: impl Into<Cow<'a, str>>,
) -> Self
pub fn new( ccy: impl Into<Cow<'a, str>>, amt: impl Into<Cow<'a, str>>, from_account: impl Into<Cow<'a, str>>, to: impl Into<Cow<'a, str>>, ) -> Self
Create a funds-transfer request.
Sourcepub fn transfer_type(self, transfer_type: impl Into<Cow<'a, str>>) -> Self
pub fn transfer_type(self, transfer_type: impl Into<Cow<'a, str>>) -> Self
Set transfer type, e.g. 0 for transfer within account.
Sourcepub fn sub_account(self, sub_account: impl Into<Cow<'a, str>>) -> Self
pub fn sub_account(self, sub_account: impl Into<Cow<'a, str>>) -> Self
Set sub-account name.
Sourcepub fn loan_transfer(self, loan_transfer: impl Into<Cow<'a, str>>) -> Self
pub fn loan_transfer(self, loan_transfer: impl Into<Cow<'a, str>>) -> Self
Set whether this is a loan transfer.
Sourcepub fn omit_pos_risk(self, omit_pos_risk: impl Into<Cow<'a, str>>) -> Self
pub fn omit_pos_risk(self, omit_pos_risk: impl Into<Cow<'a, str>>) -> Self
Set whether to ignore position risk (Portfolio margin).
Trait Implementations§
Source§impl<'a> Clone for FundsTransferRequest<'a>
impl<'a> Clone for FundsTransferRequest<'a>
Source§fn clone(&self) -> FundsTransferRequest<'a>
fn clone(&self) -> FundsTransferRequest<'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 FundsTransferRequest<'a>
impl<'a> Debug for FundsTransferRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for FundsTransferRequest<'a>
impl<'a> RefUnwindSafe for FundsTransferRequest<'a>
impl<'a> Send for FundsTransferRequest<'a>
impl<'a> Sync for FundsTransferRequest<'a>
impl<'a> Unpin for FundsTransferRequest<'a>
impl<'a> UnsafeUnpin for FundsTransferRequest<'a>
impl<'a> UnwindSafe for FundsTransferRequest<'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