Struct amazon_sp_vendor_invoices::models::tax_details::TaxDetails
source · [−]pub struct TaxDetails {
pub tax_type: TaxType,
pub tax_rate: Option<String>,
pub tax_amount: Box<Money>,
pub taxable_amount: Option<Box<Money>>,
}Expand description
TaxDetails : Details of tax amount applied.
Fields
tax_type: TaxTypeType of the tax applied.
tax_rate: Option<String>A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation.
Pattern : ^-?(0|([1-9]\\d*))(\\.\\d+)?([eE][+-]?\\d+)?$.
tax_amount: Box<Money>taxable_amount: Option<Box<Money>>Implementations
sourceimpl TaxDetails
impl TaxDetails
sourcepub fn new(tax_type: TaxType, tax_amount: Money) -> TaxDetails
pub fn new(tax_type: TaxType, tax_amount: Money) -> TaxDetails
Details of tax amount applied.
Trait Implementations
sourceimpl Clone for TaxDetails
impl Clone for TaxDetails
sourcefn clone(&self) -> TaxDetails
fn clone(&self) -> TaxDetails
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 TaxDetails
impl Debug for TaxDetails
sourceimpl Default for TaxDetails
impl Default for TaxDetails
sourcefn default() -> TaxDetails
fn default() -> TaxDetails
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for TaxDetails
impl<'de> Deserialize<'de> for TaxDetails
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<TaxDetails> for TaxDetails
impl PartialEq<TaxDetails> for TaxDetails
sourcefn eq(&self, other: &TaxDetails) -> bool
fn eq(&self, other: &TaxDetails) -> bool
sourceimpl Serialize for TaxDetails
impl Serialize for TaxDetails
impl StructuralPartialEq for TaxDetails
Auto Trait Implementations
impl RefUnwindSafe for TaxDetails
impl Send for TaxDetails
impl Sync for TaxDetails
impl Unpin for TaxDetails
impl UnwindSafe for TaxDetails
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