pub struct TransferData {
pub amount: Option<i64>,
pub destination: Expandable<Account>,
}
Fields§
§amount: Option<i64>
The amount transferred to the destination account. This transfer will occur automatically after the payment succeeds. If no amount is specified, by default the entire payment amount is transferred to the destination account. The amount must be less than or equal to the amount, and must be a positive integer. representing how much to transfer in the smallest currency unit (e.g., 100 cents to charge $1.00).
destination: Expandable<Account>
The account (if any) that the payment is attributed to for tax reporting, and where funds from the payment are transferred to after payment success.
Trait Implementations§
Source§impl Clone for TransferData
impl Clone for TransferData
Source§fn clone(&self) -> TransferData
fn clone(&self) -> TransferData
Returns a duplicate of the value. Read more
1.0.0 · 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 TransferData
impl Debug for TransferData
Source§impl Deserialize for TransferData
impl Deserialize for TransferData
Source§impl ObjectDeser for TransferData
impl ObjectDeser for TransferData
Auto Trait Implementations§
impl Freeze for TransferData
impl RefUnwindSafe for TransferData
impl Send for TransferData
impl Sync for TransferData
impl Unpin for TransferData
impl UnwindSafe for TransferData
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