Skip to main content

AbsolutePriceSchedule

Struct AbsolutePriceSchedule 

Source
pub struct AbsolutePriceSchedule<const ABSOLUTE_PRICE_SCHEDULE_TIME_ANCHOR_CAP: usize = 1024> {
Show 13 fields pub additional_selected_services: Option<Vec<AdditionalSelectedServices, 5usize>>, pub currency: String<3usize>, pub custom_data: Option<CustomData>, pub language: String<8usize>, pub maximum_cost: Option<RationalNumber>, pub minimum_cost: Option<RationalNumber>, pub overstay_rule_list: Option<OverstayRuleList>, pub price_algorithm: String<2000usize>, pub price_rule_stacks: Vec<PriceRuleStack, 1024usize>, pub price_schedule_description: Option<String<160usize>>, pub price_schedule_i_d: i64, pub tax_rules: Option<Vec<TaxRule, 10usize>>, pub time_anchor: String<ABSOLUTE_PRICE_SCHEDULE_TIME_ANCHOR_CAP>,
}
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, 5usize>>§currency: String<3usize>

Currency according to ISO 4217.

§custom_data: Option<CustomData>§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>§minimum_cost: Option<RationalNumber>§overstay_rule_list: Option<OverstayRuleList>§price_algorithm: String<2000usize>

A 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, 1024usize>§price_schedule_description: Option<String<160usize>>

Description of the price schedule.

§price_schedule_i_d: i64

Unique ID of price schedule

§tax_rules: Option<Vec<TaxRule, 10usize>>§time_anchor: String<ABSOLUTE_PRICE_SCHEDULE_TIME_ANCHOR_CAP>

Starting point of price schedule.

Trait Implementations§

Source§

impl<const ABSOLUTE_PRICE_SCHEDULE_TIME_ANCHOR_CAP: usize> Clone for AbsolutePriceSchedule<ABSOLUTE_PRICE_SCHEDULE_TIME_ANCHOR_CAP>

Source§

fn clone( &self, ) -> AbsolutePriceSchedule<ABSOLUTE_PRICE_SCHEDULE_TIME_ANCHOR_CAP>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<const ABSOLUTE_PRICE_SCHEDULE_TIME_ANCHOR_CAP: usize> Debug for AbsolutePriceSchedule<ABSOLUTE_PRICE_SCHEDULE_TIME_ANCHOR_CAP>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<const ABSOLUTE_PRICE_SCHEDULE_TIME_ANCHOR_CAP: usize> Eq for AbsolutePriceSchedule<ABSOLUTE_PRICE_SCHEDULE_TIME_ANCHOR_CAP>

Source§

impl<const ABSOLUTE_PRICE_SCHEDULE_TIME_ANCHOR_CAP: usize> PartialEq for AbsolutePriceSchedule<ABSOLUTE_PRICE_SCHEDULE_TIME_ANCHOR_CAP>

Source§

fn eq( &self, other: &AbsolutePriceSchedule<ABSOLUTE_PRICE_SCHEDULE_TIME_ANCHOR_CAP>, ) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl<const ABSOLUTE_PRICE_SCHEDULE_TIME_ANCHOR_CAP: usize> StructuralPartialEq for AbsolutePriceSchedule<ABSOLUTE_PRICE_SCHEDULE_TIME_ANCHOR_CAP>

Auto Trait Implementations§

§

impl<const ABSOLUTE_PRICE_SCHEDULE_TIME_ANCHOR_CAP: usize> Freeze for AbsolutePriceSchedule<ABSOLUTE_PRICE_SCHEDULE_TIME_ANCHOR_CAP>

§

impl<const ABSOLUTE_PRICE_SCHEDULE_TIME_ANCHOR_CAP: usize> RefUnwindSafe for AbsolutePriceSchedule<ABSOLUTE_PRICE_SCHEDULE_TIME_ANCHOR_CAP>

§

impl<const ABSOLUTE_PRICE_SCHEDULE_TIME_ANCHOR_CAP: usize> Send for AbsolutePriceSchedule<ABSOLUTE_PRICE_SCHEDULE_TIME_ANCHOR_CAP>

§

impl<const ABSOLUTE_PRICE_SCHEDULE_TIME_ANCHOR_CAP: usize> Sync for AbsolutePriceSchedule<ABSOLUTE_PRICE_SCHEDULE_TIME_ANCHOR_CAP>

§

impl<const ABSOLUTE_PRICE_SCHEDULE_TIME_ANCHOR_CAP: usize> Unpin for AbsolutePriceSchedule<ABSOLUTE_PRICE_SCHEDULE_TIME_ANCHOR_CAP>

§

impl<const ABSOLUTE_PRICE_SCHEDULE_TIME_ANCHOR_CAP: usize> UnsafeUnpin for AbsolutePriceSchedule<ABSOLUTE_PRICE_SCHEDULE_TIME_ANCHOR_CAP>

§

impl<const ABSOLUTE_PRICE_SCHEDULE_TIME_ANCHOR_CAP: usize> UnwindSafe for AbsolutePriceSchedule<ABSOLUTE_PRICE_SCHEDULE_TIME_ANCHOR_CAP>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.