pub struct TaxCategory {
pub id: String,
pub percent: f64,
pub tax_scheme: String,
}Expand description
Tax category for a line item or tax subtotal
Fields§
§id: StringTax category code (e.g., “S” for standard rate, “Z” for zero-rated)
percent: f64Tax rate percentage
tax_scheme: StringTax scheme (e.g., “VAT”, “GST”)
Trait Implementations§
Source§impl Clone for TaxCategory
impl Clone for TaxCategory
Source§fn clone(&self) -> TaxCategory
fn clone(&self) -> TaxCategory
Returns a duplicate of the value. Read more
1.0.0 · 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 TaxCategory
impl Debug for TaxCategory
Source§impl<'de> Deserialize<'de> for TaxCategory
impl<'de> Deserialize<'de> for TaxCategory
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
Auto Trait Implementations§
impl Freeze for TaxCategory
impl RefUnwindSafe for TaxCategory
impl Send for TaxCategory
impl Sync for TaxCategory
impl Unpin for TaxCategory
impl UnsafeUnpin for TaxCategory
impl UnwindSafe for TaxCategory
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