pub struct Vat {
pub country_code: String,
pub amount: i32,
pub scale: Option<Option<i32>>,
pub percentage: Option<Option<f32>>,
pub tax_id: Option<Option<String>>,
pub scope: Option<String>,
}Fields§
§country_code: StringISO 3166-1 alpha-2 2 character country code
amount: i32amount in cents
scale: Option<Option<i32>>scale of the amount - the number of positions after the comma
percentage: Option<Option<f32>>§tax_id: Option<Option<String>>§scope: Option<String>scope where the VAT applies. Values from the Tax Scope Code List Listed values here are examples.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Vat
impl<'de> Deserialize<'de> for Vat
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
impl StructuralPartialEq for Vat
Auto Trait Implementations§
impl Freeze for Vat
impl RefUnwindSafe for Vat
impl Send for Vat
impl Sync for Vat
impl Unpin for Vat
impl UnwindSafe for Vat
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