pub struct ChargingPeriod {
pub dimensions: Option<Vec<CostDimension>>,
pub tariff_id: Option<String>,
pub start_period: DateTime,
pub custom_data: Option<CustomData>,
}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§
§dimensions: Option<Vec<CostDimension>>§tariff_id: Option<String>Unique identifier of the Tariff that was used to calculate cost. If not provided, then cost was calculated by some other means.
start_period: DateTimeStart timestamp of charging period. A period ends when the next period starts. The last period ends when the session ends.
custom_data: Option<CustomData>Trait Implementations§
Source§impl Clone for ChargingPeriod
impl Clone for ChargingPeriod
Source§impl Debug for ChargingPeriod
impl Debug for ChargingPeriod
Source§impl<'de> Deserialize<'de> for ChargingPeriod
impl<'de> Deserialize<'de> for ChargingPeriod
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 PartialEq for ChargingPeriod
impl PartialEq for ChargingPeriod
Source§impl Serialize for ChargingPeriod
impl Serialize for ChargingPeriod
impl StructuralPartialEq for ChargingPeriod
Auto Trait Implementations§
impl Freeze for ChargingPeriod
impl RefUnwindSafe for ChargingPeriod
impl Send for ChargingPeriod
impl Sync for ChargingPeriod
impl Unpin for ChargingPeriod
impl UnsafeUnpin for ChargingPeriod
impl UnwindSafe for ChargingPeriod
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