pub struct InternalTransferRequest {
pub transfer_id: String,
pub coin: String,
pub amount: Decimal,
pub from_account_type: AccountType,
pub to_account_type: AccountType,
}Expand description
Request body for Client::internal_transfer.
Fields§
§transfer_id: StringUUID. Please manually generate a UUID and ensure it is unique. Used to prevent duplicate transfers
coin: StringCoin name, uppercase only
amount: DecimalTransfer amount
from_account_type: AccountType§to_account_type: AccountTypeImplementations§
Source§impl InternalTransferRequest
impl InternalTransferRequest
pub fn new( transfer_id: String, coin: String, amount: Decimal, from_account_type: AccountType, to_account_type: AccountType, ) -> Self
Trait Implementations§
Source§impl Clone for InternalTransferRequest
impl Clone for InternalTransferRequest
Source§fn clone(&self) -> InternalTransferRequest
fn clone(&self) -> InternalTransferRequest
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 InternalTransferRequest
impl Debug for InternalTransferRequest
Auto Trait Implementations§
impl Freeze for InternalTransferRequest
impl RefUnwindSafe for InternalTransferRequest
impl Send for InternalTransferRequest
impl Sync for InternalTransferRequest
impl Unpin for InternalTransferRequest
impl UnsafeUnpin for InternalTransferRequest
impl UnwindSafe for InternalTransferRequest
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