pub struct TaxRule {
pub tax_rule_id: i64,
pub tax_rule_name: Option<String>,
pub tax_included_in_price: Option<bool>,
pub applies_to_energy_fee: bool,
pub applies_to_parking_fee: bool,
pub applies_to_overstay_fee: bool,
pub applies_to_minimum_maximum_cost: bool,
pub tax_rate: RationalNumber,
pub custom_data: Option<CustomData>,
}Expand description
Part of ISO 15118-20 price schedule.
Fields§
§tax_rule_id: i64Id for the tax rule.
tax_rule_name: Option<String>Human readable string to identify the tax rule.
tax_included_in_price: Option<bool>Indicates whether the tax is included in any price or not.
applies_to_energy_fee: boolIndicates whether this tax applies to Energy Fees.
applies_to_parking_fee: boolIndicates whether this tax applies to Parking Fees.
applies_to_overstay_fee: boolIndicates whether this tax applies to Overstay Fees.
applies_to_minimum_maximum_cost: boolIndicates whether this tax applies to Minimum/Maximum Cost.
tax_rate: RationalNumber§custom_data: Option<CustomData>Trait Implementations§
Source§impl<'de> Deserialize<'de> for TaxRule
impl<'de> Deserialize<'de> for TaxRule
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 TaxRule
Auto Trait Implementations§
impl Freeze for TaxRule
impl RefUnwindSafe for TaxRule
impl Send for TaxRule
impl Sync for TaxRule
impl Unpin for TaxRule
impl UnsafeUnpin for TaxRule
impl UnwindSafe for TaxRule
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