ocpi 0.3.5

Unofficial, in progress, OCPI implementation
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use super::{CdrDimension, CiString, DateTime};

#[derive(Clone, Debug, PartialEq, serde::Serialize, serde::Deserialize)]
pub struct ChargingPeriod {
    /// Start timestamp of the charging period.
    /// A period ends when the next period starts.
    /// The last period ends when the session ends.
    pub start_date_time: DateTime,

    /// List of relevant values for this charging period.
    pub dimensions: Vec<CdrDimension>,

    /// Unique identifier of the Tariff that is relevant for this Charging Period.
    /// If not provided, no Tariff is relevant during this period.
    pub tariff_id: Option<CiString<36>>,
}