pub struct TaxBreakdown {
pub jurisdiction_id: Uuid,
pub jurisdiction_name: String,
pub tax_type: TaxType,
pub rate_name: String,
pub rate: Decimal,
pub taxable_amount: Decimal,
pub tax_amount: Decimal,
pub is_compound: bool,
}Expand description
Tax breakdown by jurisdiction
Fields§
§jurisdiction_id: UuidJurisdiction ID
jurisdiction_name: StringJurisdiction name
tax_type: TaxTypeTax type
rate_name: StringRate name
rate: DecimalTax rate applied
taxable_amount: DecimalTaxable amount
tax_amount: DecimalTax amount
is_compound: boolWhether this is a compound tax
Trait Implementations§
Source§impl Clone for TaxBreakdown
impl Clone for TaxBreakdown
Source§fn clone(&self) -> TaxBreakdown
fn clone(&self) -> TaxBreakdown
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TaxBreakdown
impl Debug for TaxBreakdown
Source§impl<'de> Deserialize<'de> for TaxBreakdown
impl<'de> Deserialize<'de> for TaxBreakdown
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TaxBreakdown, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TaxBreakdown, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for TaxBreakdown
impl Serialize for TaxBreakdown
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for TaxBreakdown
impl RefUnwindSafe for TaxBreakdown
impl Send for TaxBreakdown
impl Sync for TaxBreakdown
impl Unpin for TaxBreakdown
impl UnsafeUnpin for TaxBreakdown
impl UnwindSafe for TaxBreakdown
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