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