pub struct OrderLineItemPricingBlocklists {
pub blocked_discounts: Option<Vec<OrderLineItemPricingBlocklistsBlockedDiscount>>,
pub blocked_taxes: Option<Vec<OrderLineItemPricingBlocklistsBlockedTax>>,
}
Expand description
Describes pricing adjustments that are blocked from manual and automatic application to a line item.
For more information, see Apply Taxes and Discounts.
Fields§
§blocked_discounts: Option<Vec<OrderLineItemPricingBlocklistsBlockedDiscount>>
A list of discounts blocked from applying to the line item. Discounts can be blocked by the
discount_uid
(for ad hoc discounts) or the discount_catalog_object_id
(for catalog
discounts).
blocked_taxes: Option<Vec<OrderLineItemPricingBlocklistsBlockedTax>>
A list of taxes blocked from applying to the line item. Taxes can be blocked by the
tax_uid
(for ad hoc taxes) or the tax_catalog_object_id
(for catalog taxes).
Trait Implementations§
Source§impl Clone for OrderLineItemPricingBlocklists
impl Clone for OrderLineItemPricingBlocklists
Source§fn clone(&self) -> OrderLineItemPricingBlocklists
fn clone(&self) -> OrderLineItemPricingBlocklists
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 Default for OrderLineItemPricingBlocklists
impl Default for OrderLineItemPricingBlocklists
Source§fn default() -> OrderLineItemPricingBlocklists
fn default() -> OrderLineItemPricingBlocklists
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OrderLineItemPricingBlocklists
impl<'de> Deserialize<'de> for OrderLineItemPricingBlocklists
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 OrderLineItemPricingBlocklists
impl PartialEq for OrderLineItemPricingBlocklists
Source§fn eq(&self, other: &OrderLineItemPricingBlocklists) -> bool
fn eq(&self, other: &OrderLineItemPricingBlocklists) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl Eq for OrderLineItemPricingBlocklists
impl StructuralPartialEq for OrderLineItemPricingBlocklists
Auto Trait Implementations§
impl Freeze for OrderLineItemPricingBlocklists
impl RefUnwindSafe for OrderLineItemPricingBlocklists
impl Send for OrderLineItemPricingBlocklists
impl Sync for OrderLineItemPricingBlocklists
impl Unpin for OrderLineItemPricingBlocklists
impl UnwindSafe for OrderLineItemPricingBlocklists
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.