Struct stripe::generated::core::setup_intent::CreateSetupIntentSingleUse
source · pub struct CreateSetupIntentSingleUse {
pub amount: i64,
pub currency: Currency,
}
Fields§
§amount: i64
Amount the customer is granting permission to collect later.
A positive integer representing how much to charge in the smallest currency unit (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or equivalent in charge currency. The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
currency: Currency
Three-letter ISO currency code, in lowercase.
Must be a supported currency.
Trait Implementations§
source§impl Clone for CreateSetupIntentSingleUse
impl Clone for CreateSetupIntentSingleUse
source§fn clone(&self) -> CreateSetupIntentSingleUse
fn clone(&self) -> CreateSetupIntentSingleUse
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 Debug for CreateSetupIntentSingleUse
impl Debug for CreateSetupIntentSingleUse
source§impl Default for CreateSetupIntentSingleUse
impl Default for CreateSetupIntentSingleUse
source§fn default() -> CreateSetupIntentSingleUse
fn default() -> CreateSetupIntentSingleUse
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CreateSetupIntentSingleUse
impl<'de> Deserialize<'de> for CreateSetupIntentSingleUse
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 CreateSetupIntentSingleUse
impl Send for CreateSetupIntentSingleUse
impl Sync for CreateSetupIntentSingleUse
impl Unpin for CreateSetupIntentSingleUse
impl UnwindSafe for CreateSetupIntentSingleUse
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