pub struct UniversalTransferRequest {
pub transfer_id: String,
pub coin: String,
pub amount: Decimal,
pub from_member_id: i64,
pub to_member_id: i64,
pub from_account_type: AccountType,
pub to_account_type: AccountType,
}Expand description
Request body for Client::universal_transfer.
Transfers funds between a master account and its sub-accounts (or between two sub-accounts).
Requires the master UID’s API key, or a sub-account key with the SubMemberTransferList
permission (which may only transfer to the master account).
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_member_id: i64Source UID
to_member_id: i64Destination UID
from_account_type: AccountTypeFrom account type.
to_account_type: AccountTypeTo account type.
Implementations§
Trait Implementations§
Source§impl Clone for UniversalTransferRequest
impl Clone for UniversalTransferRequest
Source§impl Debug for UniversalTransferRequest
impl Debug for UniversalTransferRequest
Auto Trait Implementations§
impl Freeze for UniversalTransferRequest
impl RefUnwindSafe for UniversalTransferRequest
impl Send for UniversalTransferRequest
impl Sync for UniversalTransferRequest
impl Unpin for UniversalTransferRequest
impl UnsafeUnpin for UniversalTransferRequest
impl UnwindSafe for UniversalTransferRequest
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