pub struct WithdrawalRequest<'a> { /* private fields */ }Expand description
Request body for Funding::withdrawal.
Implementations§
Source§impl<'a> WithdrawalRequest<'a>
impl<'a> WithdrawalRequest<'a>
Sourcepub fn new(
ccy: impl Into<Cow<'a, str>>,
amt: impl Into<Cow<'a, str>>,
dest: impl Into<Cow<'a, str>>,
to_addr: impl Into<Cow<'a, str>>,
) -> Self
pub fn new( ccy: impl Into<Cow<'a, str>>, amt: impl Into<Cow<'a, str>>, dest: impl Into<Cow<'a, str>>, to_addr: impl Into<Cow<'a, str>>, ) -> Self
Create a withdrawal request.
Sourcepub fn area_code(self, area_code: impl Into<Cow<'a, str>>) -> Self
pub fn area_code(self, area_code: impl Into<Cow<'a, str>>) -> Self
Set phone area code for internal withdrawals.
Sourcepub fn to_addr_type(self, to_addr_type: impl Into<Cow<'a, str>>) -> Self
pub fn to_addr_type(self, to_addr_type: impl Into<Cow<'a, str>>) -> Self
Set address type.
Trait Implementations§
Source§impl<'a> Clone for WithdrawalRequest<'a>
impl<'a> Clone for WithdrawalRequest<'a>
Source§fn clone(&self) -> WithdrawalRequest<'a>
fn clone(&self) -> WithdrawalRequest<'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 WithdrawalRequest<'a>
impl<'a> Debug for WithdrawalRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for WithdrawalRequest<'a>
impl<'a> RefUnwindSafe for WithdrawalRequest<'a>
impl<'a> Send for WithdrawalRequest<'a>
impl<'a> Sync for WithdrawalRequest<'a>
impl<'a> Unpin for WithdrawalRequest<'a>
impl<'a> UnsafeUnpin for WithdrawalRequest<'a>
impl<'a> UnwindSafe for WithdrawalRequest<'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