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