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
sourceimpl Clone for OrderLineItemPricingBlocklists
impl Clone for OrderLineItemPricingBlocklists
sourcefn clone(&self) -> OrderLineItemPricingBlocklists
fn clone(&self) -> OrderLineItemPricingBlocklists
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 Default for OrderLineItemPricingBlocklists
impl Default for OrderLineItemPricingBlocklists
sourcefn default() -> OrderLineItemPricingBlocklists
fn default() -> OrderLineItemPricingBlocklists
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for OrderLineItemPricingBlocklists
impl<'de> Deserialize<'de> for OrderLineItemPricingBlocklists
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<OrderLineItemPricingBlocklists> for OrderLineItemPricingBlocklists
impl PartialEq<OrderLineItemPricingBlocklists> for OrderLineItemPricingBlocklists
sourcefn eq(&self, other: &OrderLineItemPricingBlocklists) -> bool
fn eq(&self, other: &OrderLineItemPricingBlocklists) -> bool
impl Eq for OrderLineItemPricingBlocklists
impl StructuralEq for OrderLineItemPricingBlocklists
impl StructuralPartialEq for OrderLineItemPricingBlocklists
Auto Trait Implementations
impl RefUnwindSafe for OrderLineItemPricingBlocklists
impl Send for OrderLineItemPricingBlocklists
impl Sync for OrderLineItemPricingBlocklists
impl Unpin for OrderLineItemPricingBlocklists
impl UnwindSafe for OrderLineItemPricingBlocklists
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.