pub struct CustomUnitAmount {
pub maximum: Option<i64>,
pub minimum: Option<i64>,
pub preset: Option<i64>,
}
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 duplicate 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 Deserialize for CustomUnitAmount
impl Deserialize for CustomUnitAmount
Source§impl FromValueOpt for CustomUnitAmount
impl FromValueOpt for CustomUnitAmount
fn from_value(v: Value) -> Option<Self>
Source§impl ObjectDeser for CustomUnitAmount
impl ObjectDeser for CustomUnitAmount
impl Copy for CustomUnitAmount
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