pub struct PricingContext {
pub customer_segment: Option<String>,
pub quantity: u32,
pub existing_products: Vec<Uuid>,
}Expand description
Pricing context for discount evaluation
Fields§
§customer_segment: Option<String>§quantity: u32§existing_products: Vec<Uuid>Trait Implementations§
Source§impl Clone for PricingContext
impl Clone for PricingContext
Source§fn clone(&self) -> PricingContext
fn clone(&self) -> PricingContext
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 moreAuto Trait Implementations§
impl Freeze for PricingContext
impl RefUnwindSafe for PricingContext
impl Send for PricingContext
impl Sync for PricingContext
impl Unpin for PricingContext
impl UnwindSafe for PricingContext
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