pub struct DynamicPricing {
pub base_price: Money,
pub factors: Vec<PricingFactor>,
pub adjustment_rules: Vec<PriceAdjustmentRule>,
}Expand description
Dynamic pricing
Fields§
§base_price: Money§factors: Vec<PricingFactor>§adjustment_rules: Vec<PriceAdjustmentRule>Trait Implementations§
Source§impl Clone for DynamicPricing
impl Clone for DynamicPricing
Source§fn clone(&self) -> DynamicPricing
fn clone(&self) -> DynamicPricing
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 DynamicPricing
impl Debug for DynamicPricing
Source§impl<'de> Deserialize<'de> for DynamicPricing
impl<'de> Deserialize<'de> for DynamicPricing
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 DynamicPricing
impl RefUnwindSafe for DynamicPricing
impl Send for DynamicPricing
impl Sync for DynamicPricing
impl Unpin for DynamicPricing
impl UnwindSafe for DynamicPricing
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