pub struct PricingRule {
pub id: Uuid,
pub product_offering_id: Uuid,
pub price_type: PriceType,
pub base_price: Money,
pub discount_rules: Option<Vec<DiscountRule>>,
pub valid_for: Option<TimePeriod>,
}Expand description
Pricing rule for a product offering
Fields§
§id: Uuid§product_offering_id: Uuid§price_type: PriceType§base_price: Money§discount_rules: Option<Vec<DiscountRule>>§valid_for: Option<TimePeriod>Trait Implementations§
Source§impl Clone for PricingRule
impl Clone for PricingRule
Source§fn clone(&self) -> PricingRule
fn clone(&self) -> PricingRule
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 PricingRule
impl Debug for PricingRule
Source§impl<'de> Deserialize<'de> for PricingRule
impl<'de> Deserialize<'de> for PricingRule
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 PricingRule
impl RefUnwindSafe for PricingRule
impl Send for PricingRule
impl Sync for PricingRule
impl Unpin for PricingRule
impl UnwindSafe for PricingRule
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