Struct stripe::CreateCustomerBalanceTransaction
source · pub struct CreateCustomerBalanceTransaction<'a> {
pub amount: i64,
pub currency: Currency,
pub description: Option<&'a str>,
pub metadata: Option<Metadata>,
}
Expand description
The parameters that can be used when creating or updating a CustomerBalanceTransaction
.
Fields§
§amount: i64
The integer amount in cents to apply to the customer’s credit balance.
currency: Currency
Three-letter ISO currency code, in lowercase.
Must be a supported currency. Specifies the invoice_credit_balance that this transaction will apply to. If the customer’s currency is not set, it will be updated to this value.
description: Option<&'a str>
An arbitrary string attached to the object. Often useful for displaying to users.
metadata: Option<Metadata>
Set of key-value pairs that you can attach to an object.
This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to metadata.
Implementations§
Trait Implementations§
source§impl<'a> Clone for CreateCustomerBalanceTransaction<'a>
impl<'a> Clone for CreateCustomerBalanceTransaction<'a>
source§fn clone(&self) -> CreateCustomerBalanceTransaction<'a>
fn clone(&self) -> CreateCustomerBalanceTransaction<'a>
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<'a> Debug for CreateCustomerBalanceTransaction<'a>
impl<'a> Debug for CreateCustomerBalanceTransaction<'a>
Auto Trait Implementations§
impl<'a> Freeze for CreateCustomerBalanceTransaction<'a>
impl<'a> RefUnwindSafe for CreateCustomerBalanceTransaction<'a>
impl<'a> Send for CreateCustomerBalanceTransaction<'a>
impl<'a> Sync for CreateCustomerBalanceTransaction<'a>
impl<'a> Unpin for CreateCustomerBalanceTransaction<'a>
impl<'a> UnwindSafe for CreateCustomerBalanceTransaction<'a>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)