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: AccountTypeFrom account type.
to_account_type: AccountTypeTo account type.
Implementations§
Source§impl InternalTransferRequest
impl InternalTransferRequest
Sourcepub fn new(
transfer_id: impl Into<String>,
coin: impl Into<String>,
amount: Decimal,
from_account_type: AccountType,
to_account_type: AccountType,
) -> Self
pub fn new( transfer_id: impl Into<String>, coin: impl Into<String>, amount: Decimal, from_account_type: AccountType, to_account_type: AccountType, ) -> Self
Create with the required fields; set the optional ones with the with_* methods.
Trait Implementations§
Source§impl Clone for InternalTransferRequest
impl Clone for InternalTransferRequest
Source§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