Struct square_api_client::models::OrderPricingOptions
source · 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
sourceimpl Clone for OrderPricingOptions
impl Clone for OrderPricingOptions
sourcefn clone(&self) -> OrderPricingOptions
fn clone(&self) -> OrderPricingOptions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for OrderPricingOptions
impl Debug for OrderPricingOptions
sourceimpl Default for OrderPricingOptions
impl Default for OrderPricingOptions
sourcefn default() -> OrderPricingOptions
fn default() -> OrderPricingOptions
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for OrderPricingOptions
impl<'de> Deserialize<'de> for OrderPricingOptions
sourcefn 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
sourceimpl PartialEq<OrderPricingOptions> for OrderPricingOptions
impl PartialEq<OrderPricingOptions> for OrderPricingOptions
sourcefn eq(&self, other: &OrderPricingOptions) -> bool
fn eq(&self, other: &OrderPricingOptions) -> bool
sourceimpl Serialize for OrderPricingOptions
impl Serialize for OrderPricingOptions
impl Eq for OrderPricingOptions
impl StructuralEq for OrderPricingOptions
impl StructuralPartialEq for OrderPricingOptions
Auto Trait Implementations
impl RefUnwindSafe for OrderPricingOptions
impl Send for OrderPricingOptions
impl Sync for OrderPricingOptions
impl Unpin for OrderPricingOptions
impl UnwindSafe for OrderPricingOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.