pub struct AbsolutePriceSchedule<CustomDataType = NoCustomData> {Show 13 fields
pub additional_selected_services: Option<Vec<AdditionalSelectedServices<CustomDataType>, 5usize>>,
pub currency: String<3usize>,
pub custom_data: Option<CustomDataType>,
pub language: String<8usize>,
pub maximum_cost: Option<RationalNumber<CustomDataType>>,
pub minimum_cost: Option<RationalNumber<CustomDataType>>,
pub overstay_rule_list: Option<OverstayRuleList<CustomDataType>>,
pub price_algorithm: String,
pub price_rule_stacks: Vec<PriceRuleStack<CustomDataType>>,
pub price_schedule_description: Option<String<160usize>>,
pub price_schedule_i_d: i64,
pub tax_rules: Option<Vec<TaxRule<CustomDataType>, 10usize>>,
pub time_anchor: OcppTimestamp,
}Expand description
The AbsolutePriceScheduleType is modeled after the same type that is defined in ISO 15118-20, such that if it is supplied by an EMSP as a signed EXI message, the conversion from EXI to JSON (in OCPP) and back to EXI (for ISO 15118-20) does not change the digest and therefore does not invalidate the signature.
image::images/AbsolutePriceSchedule-Simple.png[]
Fields§
§additional_selected_services: Option<Vec<AdditionalSelectedServices<CustomDataType>, 5usize>>§currency: String<3usize>Currency according to ISO 4217.
custom_data: Option<CustomDataType>§language: String<8usize>String that indicates what language is used for the human readable strings in the price schedule. Based on ISO 639.
maximum_cost: Option<RationalNumber<CustomDataType>>§minimum_cost: Option<RationalNumber<CustomDataType>>§overstay_rule_list: Option<OverstayRuleList<CustomDataType>>§price_algorithm: StringA string in URN notation which shall uniquely identify an algorithm that defines how to compute an energy fee sum for a specific power profile based on the EnergyFee information from the PriceRule elements.
price_rule_stacks: Vec<PriceRuleStack<CustomDataType>>§price_schedule_description: Option<String<160usize>>Description of the price schedule.
price_schedule_i_d: i64Unique ID of price schedule
tax_rules: Option<Vec<TaxRule<CustomDataType>, 10usize>>§time_anchor: OcppTimestampStarting point of price schedule.
Trait Implementations§
Source§impl<CustomDataType: Clone> Clone for AbsolutePriceSchedule<CustomDataType>
impl<CustomDataType: Clone> Clone for AbsolutePriceSchedule<CustomDataType>
Source§fn clone(&self) -> AbsolutePriceSchedule<CustomDataType>
fn clone(&self) -> AbsolutePriceSchedule<CustomDataType>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<CustomDataType: Debug> Debug for AbsolutePriceSchedule<CustomDataType>
impl<CustomDataType: Debug> Debug for AbsolutePriceSchedule<CustomDataType>
Source§impl<'de, CustomDataType> Deserialize<'de> for AbsolutePriceSchedule<CustomDataType>where
CustomDataType: Deserialize<'de>,
impl<'de, CustomDataType> Deserialize<'de> for AbsolutePriceSchedule<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>,
impl<CustomDataType: Eq> Eq for AbsolutePriceSchedule<CustomDataType>
Source§impl<CustomDataType: PartialEq> PartialEq for AbsolutePriceSchedule<CustomDataType>
impl<CustomDataType: PartialEq> PartialEq for AbsolutePriceSchedule<CustomDataType>
Source§impl<CustomDataType> Serialize for AbsolutePriceSchedule<CustomDataType>where
CustomDataType: Serialize,
impl<CustomDataType> Serialize for AbsolutePriceSchedule<CustomDataType>where
CustomDataType: Serialize,
impl<CustomDataType: PartialEq> StructuralPartialEq for AbsolutePriceSchedule<CustomDataType>
Source§impl<CustomDataType> Validate for AbsolutePriceSchedule<CustomDataType>
Available on crate features alloc and validate only.
impl<CustomDataType> Validate for AbsolutePriceSchedule<CustomDataType>
alloc and validate only.