pub struct OrderLineItemAppliedTax {
pub uid: Option<String>,
pub tax_uid: String,
pub applied_money: Option<Money>,
}
Expand description
Represents an applied portion of a tax to a line item in an order.
Order-scoped taxes automatically include the applied taxes in each line item. Line item taxes must be referenced from any applicable line items. The corresponding applied money is automatically computed, based on the set of participating line items.
Fields§
§uid: Option<String>
A unique ID that identifies the applied tax only within this order.
tax_uid: String
The uid
of the tax for which this applied tax represents. It must reference a tax present
in the order.taxes
field.
This field is immutable. To change which taxes apply to a line item, delete and add a new
OrderLineItemAppliedTax
.
applied_money: Option<Money>
Read only The amount of money applied by the tax to the line item.
Trait Implementations§
Source§impl Clone for OrderLineItemAppliedTax
impl Clone for OrderLineItemAppliedTax
Source§fn clone(&self) -> OrderLineItemAppliedTax
fn clone(&self) -> OrderLineItemAppliedTax
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 OrderLineItemAppliedTax
impl Debug for OrderLineItemAppliedTax
Source§impl Default for OrderLineItemAppliedTax
impl Default for OrderLineItemAppliedTax
Source§fn default() -> OrderLineItemAppliedTax
fn default() -> OrderLineItemAppliedTax
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OrderLineItemAppliedTax
impl<'de> Deserialize<'de> for OrderLineItemAppliedTax
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 OrderLineItemAppliedTax
impl PartialEq for OrderLineItemAppliedTax
Source§impl Serialize for OrderLineItemAppliedTax
impl Serialize for OrderLineItemAppliedTax
impl Eq for OrderLineItemAppliedTax
impl StructuralPartialEq for OrderLineItemAppliedTax
Auto Trait Implementations§
impl Freeze for OrderLineItemAppliedTax
impl RefUnwindSafe for OrderLineItemAppliedTax
impl Send for OrderLineItemAppliedTax
impl Sync for OrderLineItemAppliedTax
impl Unpin for OrderLineItemAppliedTax
impl UnwindSafe for OrderLineItemAppliedTax
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.