pub struct OrderPricingOptions {
pub auto_apply_discounts: Option<bool>,
pub auto_apply_taxes: Option<bool>,
}
Expand description
Pricing options for an order.
The options affect how the order’s price is calculated. They can be used, for example, to apply automatic price adjustments that are based on preconfigured pricing rules.
Fields§
§auto_apply_discounts: Option<bool>
The option to determine whether pricing rule-based discounts are automatically applied to an order.
auto_apply_taxes: Option<bool>
The option to determine whether rule-based taxes are automatically applied to an order when the criteria of the corresponding rules are met.
Trait Implementations§
Source§impl Clone for OrderPricingOptions
impl Clone for OrderPricingOptions
Source§fn clone(&self) -> OrderPricingOptions
fn clone(&self) -> OrderPricingOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for OrderPricingOptions
impl Debug for OrderPricingOptions
Source§impl Default for OrderPricingOptions
impl Default for OrderPricingOptions
Source§fn default() -> OrderPricingOptions
fn default() -> OrderPricingOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OrderPricingOptions
impl<'de> Deserialize<'de> for OrderPricingOptions
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
Source§impl PartialEq for OrderPricingOptions
impl PartialEq for OrderPricingOptions
Source§impl Serialize for OrderPricingOptions
impl Serialize for OrderPricingOptions
impl Eq for OrderPricingOptions
impl StructuralPartialEq for OrderPricingOptions
Auto Trait Implementations§
impl Freeze for OrderPricingOptions
impl RefUnwindSafe for OrderPricingOptions
impl Send for OrderPricingOptions
impl Sync for OrderPricingOptions
impl Unpin for OrderPricingOptions
impl UnwindSafe for OrderPricingOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.