Struct stripe::CustomUnitAmount
source · pub struct CustomUnitAmount {
pub maximum: Option<i64>,
pub minimum: Option<i64>,
pub preset: Option<i64>,
}
Expand description
The resource representing a Stripe “CustomUnitAmount”.
Fields§
§maximum: Option<i64>
The maximum unit amount the customer can specify for this item.
minimum: Option<i64>
The minimum unit amount the customer can specify for this item.
Must be at least the minimum charge amount.
preset: Option<i64>
The starting unit amount which can be updated by the customer.
Trait Implementations§
source§impl Clone for CustomUnitAmount
impl Clone for CustomUnitAmount
source§fn clone(&self) -> CustomUnitAmount
fn clone(&self) -> CustomUnitAmount
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 CustomUnitAmount
impl Debug for CustomUnitAmount
source§impl Default for CustomUnitAmount
impl Default for CustomUnitAmount
source§fn default() -> CustomUnitAmount
fn default() -> CustomUnitAmount
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CustomUnitAmount
impl<'de> Deserialize<'de> for CustomUnitAmount
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 Freeze for CustomUnitAmount
impl RefUnwindSafe for CustomUnitAmount
impl Send for CustomUnitAmount
impl Sync for CustomUnitAmount
impl Unpin for CustomUnitAmount
impl UnwindSafe for CustomUnitAmount
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