pub struct Charge {
pub id: String,
pub amount: u64,
pub amount_refunded: u64,
pub application: Option<String>,
pub application_fee: Option<String>,
pub balance_transaction: Option<String>,
pub captured: bool,
pub created: Timestamp,
pub currency: Currency,
pub customer: Option<String>,
pub description: Option<String>,
pub destination: Option<String>,
pub dispute: Option<String>,
pub failure_code: Option<ErrorCode>,
pub failure_message: Option<String>,
pub fraud_details: FraudDetails,
pub invoice: Option<String>,
pub livemode: bool,
pub metadata: Metadata,
pub on_behalf_of: Option<String>,
pub order: Option<String>,
pub outcome: Option<ChargeOutcome>,
pub paid: bool,
pub payment_intent: Option<String>,
pub receipt_email: Option<String>,
pub receipt_number: Option<String>,
pub refunded: bool,
pub refunds: List<Refund>,
pub review: Option<String>,
pub shipping: Option<ShippingDetails>,
pub source: PaymentSource,
pub source_transfer: Option<String>,
pub statement_descriptor: Option<String>,
pub status: ChargeStatus,
pub transfer_group: Option<String>,
}
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Serialize this value into the given Serde serializer. Read more
Deserialize this value from the given Serde deserializer. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static