pub struct CreatePaymentIntentTransferData {
pub amount: Option<i64>,
pub destination: String,
}
Fields§
§amount: Option<i64>
The amount that will be transferred automatically when a charge succeeds. The amount is capped at the total transaction amount and if no amount is set, the full amount is transferred.
If you intend to collect a fee and you need a more robust reporting experience, using application_fee_amount might be a better fit for your integration.
destination: String
If specified, successful charges will be attributed to the destination account for tax reporting, and the funds from charges will be transferred to the destination account.
The ID of the resulting transfer will be returned on the successful charge’s transfer
field.
Trait Implementations§
source§impl Clone for CreatePaymentIntentTransferData
impl Clone for CreatePaymentIntentTransferData
source§fn clone(&self) -> CreatePaymentIntentTransferData
fn clone(&self) -> CreatePaymentIntentTransferData
Returns a copy 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 Default for CreatePaymentIntentTransferData
impl Default for CreatePaymentIntentTransferData
source§fn default() -> CreatePaymentIntentTransferData
fn default() -> CreatePaymentIntentTransferData
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CreatePaymentIntentTransferData
impl<'de> Deserialize<'de> for CreatePaymentIntentTransferData
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for CreatePaymentIntentTransferData
impl Send for CreatePaymentIntentTransferData
impl Sync for CreatePaymentIntentTransferData
impl Unpin for CreatePaymentIntentTransferData
impl UnwindSafe for CreatePaymentIntentTransferData
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