pub struct TaxDetail {
pub tax_type: TaxType,
pub tax_rate: Option<String>,
pub tax_amount: Box<Money>,
pub taxable_amount: Option<Box<Money>>,
}Expand description
TaxDetail : 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
Trait Implementations
sourceimpl<'de> Deserialize<'de> for TaxDetail
impl<'de> Deserialize<'de> for TaxDetail
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
impl StructuralPartialEq for TaxDetail
Auto Trait Implementations
impl RefUnwindSafe for TaxDetail
impl Send for TaxDetail
impl Sync for TaxDetail
impl Unpin for TaxDetail
impl UnwindSafe for TaxDetail
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