pub struct VolumePricing {
pub base_price: Money,
pub volume_discounts: Vec<VolumeDiscount>,
}Expand description
Volume-based pricing
Fields§
§base_price: Money§volume_discounts: Vec<VolumeDiscount>Trait Implementations§
Source§impl Clone for VolumePricing
impl Clone for VolumePricing
Source§fn clone(&self) -> VolumePricing
fn clone(&self) -> VolumePricing
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 VolumePricing
impl Debug for VolumePricing
Source§impl<'de> Deserialize<'de> for VolumePricing
impl<'de> Deserialize<'de> for VolumePricing
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 VolumePricing
impl RefUnwindSafe for VolumePricing
impl Send for VolumePricing
impl Sync for VolumePricing
impl Unpin for VolumePricing
impl UnwindSafe for VolumePricing
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