ocpi/types/
charging_period.rs

1use super::{CdrDimension, CiString, DateTime};
2
3#[derive(Clone, Debug, PartialEq, serde::Serialize, serde::Deserialize)]
4pub struct ChargingPeriod {
5    /// Start timestamp of the charging period.
6    /// A period ends when the next period starts.
7    /// The last period ends when the session ends.
8    pub start_date_time: DateTime,
9
10    /// List of relevant values for this charging period.
11    pub dimensions: Vec<CdrDimension>,
12
13    /// Unique identifier of the Tariff that is relevant for this Charging Period.
14    /// If not provided, no Tariff is relevant during this period.
15    pub tariff_id: Option<CiString<36>>,
16}