pub struct ChargingPeriod<CustomDataType = NoCustomData> {
pub custom_data: Option<CustomDataType>,
pub dimensions: Option<Vec<CostDimension<CustomDataType>>>,
pub start_period: OcppTimestamp,
pub tariff_id: Option<String<60usize>>,
}Expand description
A ChargingPeriodType consists of a start time, and a list of possible values that influence this period, for example: amount of energy charged this period, maximum current during this period etc.
Fields§
§custom_data: Option<CustomDataType>§dimensions: Option<Vec<CostDimension<CustomDataType>>>§start_period: OcppTimestampStart timestamp of charging period. A period ends when the next period starts. The last period ends when the session ends.
tariff_id: Option<String<60usize>>Unique identifier of the Tariff that was used to calculate cost. If not provided, then cost was calculated by some other means.
Trait Implementations§
Source§impl<CustomDataType: Clone> Clone for ChargingPeriod<CustomDataType>
impl<CustomDataType: Clone> Clone for ChargingPeriod<CustomDataType>
Source§fn clone(&self) -> ChargingPeriod<CustomDataType>
fn clone(&self) -> ChargingPeriod<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 ChargingPeriod<CustomDataType>
impl<CustomDataType: Debug> Debug for ChargingPeriod<CustomDataType>
Source§impl<'de, CustomDataType> Deserialize<'de> for ChargingPeriod<CustomDataType>where
CustomDataType: Deserialize<'de>,
impl<'de, CustomDataType> Deserialize<'de> for ChargingPeriod<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
Source§impl<CustomDataType: PartialEq> PartialEq for ChargingPeriod<CustomDataType>
impl<CustomDataType: PartialEq> PartialEq for ChargingPeriod<CustomDataType>
Source§impl<CustomDataType> Serialize for ChargingPeriod<CustomDataType>where
CustomDataType: Serialize,
impl<CustomDataType> Serialize for ChargingPeriod<CustomDataType>where
CustomDataType: Serialize,
impl<CustomDataType: PartialEq> StructuralPartialEq for ChargingPeriod<CustomDataType>
Auto Trait Implementations§
impl<CustomDataType> Freeze for ChargingPeriod<CustomDataType>where
CustomDataType: Freeze,
impl<CustomDataType> RefUnwindSafe for ChargingPeriod<CustomDataType>where
CustomDataType: RefUnwindSafe,
impl<CustomDataType> Send for ChargingPeriod<CustomDataType>where
CustomDataType: Send,
impl<CustomDataType> Sync for ChargingPeriod<CustomDataType>where
CustomDataType: Sync,
impl<CustomDataType> Unpin for ChargingPeriod<CustomDataType>where
CustomDataType: Unpin,
impl<CustomDataType> UnsafeUnpin for ChargingPeriod<CustomDataType>where
CustomDataType: UnsafeUnpin,
impl<CustomDataType> UnwindSafe for ChargingPeriod<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