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