pub struct PriceLevelScheduleEntry<CustomDataType = NoCustomData> {
pub custom_data: Option<CustomDataType>,
pub duration: i64,
pub price_level: i64,
}Expand description
Part of ISO 15118-20 price schedule.
Fields§
§custom_data: Option<CustomDataType>§duration: i64The amount of seconds that define the duration of this given PriceLevelScheduleEntry.
price_level: i64Defines the price level of this PriceLevelScheduleEntry (referring to NumberOfPriceLevels). Small values for the PriceLevel represent a cheaper PriceLevelScheduleEntry. Large values for the PriceLevel represent a more expensive PriceLevelScheduleEntry.
Trait Implementations§
Source§impl<CustomDataType: Clone> Clone for PriceLevelScheduleEntry<CustomDataType>
impl<CustomDataType: Clone> Clone for PriceLevelScheduleEntry<CustomDataType>
Source§fn clone(&self) -> PriceLevelScheduleEntry<CustomDataType>
fn clone(&self) -> PriceLevelScheduleEntry<CustomDataType>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<CustomDataType: Debug> Debug for PriceLevelScheduleEntry<CustomDataType>
impl<CustomDataType: Debug> Debug for PriceLevelScheduleEntry<CustomDataType>
Source§impl<'de, CustomDataType> Deserialize<'de> for PriceLevelScheduleEntry<CustomDataType>where
CustomDataType: Deserialize<'de>,
impl<'de, CustomDataType> Deserialize<'de> for PriceLevelScheduleEntry<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 PriceLevelScheduleEntry<CustomDataType>
Source§impl<CustomDataType: PartialEq> PartialEq for PriceLevelScheduleEntry<CustomDataType>
impl<CustomDataType: PartialEq> PartialEq for PriceLevelScheduleEntry<CustomDataType>
Source§impl<CustomDataType> Serialize for PriceLevelScheduleEntry<CustomDataType>where
CustomDataType: Serialize,
impl<CustomDataType> Serialize for PriceLevelScheduleEntry<CustomDataType>where
CustomDataType: Serialize,
impl<CustomDataType: PartialEq> StructuralPartialEq for PriceLevelScheduleEntry<CustomDataType>
Source§impl<CustomDataType> Validate for PriceLevelScheduleEntry<CustomDataType>
Available on crate feature validate only.
impl<CustomDataType> Validate for PriceLevelScheduleEntry<CustomDataType>
Available on crate feature
validate only.Auto Trait Implementations§
impl<CustomDataType> Freeze for PriceLevelScheduleEntry<CustomDataType>where
CustomDataType: Freeze,
impl<CustomDataType> RefUnwindSafe for PriceLevelScheduleEntry<CustomDataType>where
CustomDataType: RefUnwindSafe,
impl<CustomDataType> Send for PriceLevelScheduleEntry<CustomDataType>where
CustomDataType: Send,
impl<CustomDataType> Sync for PriceLevelScheduleEntry<CustomDataType>where
CustomDataType: Sync,
impl<CustomDataType> Unpin for PriceLevelScheduleEntry<CustomDataType>where
CustomDataType: Unpin,
impl<CustomDataType> UnsafeUnpin for PriceLevelScheduleEntry<CustomDataType>where
CustomDataType: UnsafeUnpin,
impl<CustomDataType> UnwindSafe for PriceLevelScheduleEntry<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