pub struct ChargingPeriod {
pub start_date_time: DateTime<Utc>,
pub dimensions: Vec<Dimension>,
pub tariff_id: Option<String>,
}Expand description
A single charging period, containing a nonempty list of charge dimensions.
Fields§
§start_date_time: DateTime<Utc>Start timestamp of the charging period. This period ends when a next period starts, the last period ends when the session ends
dimensions: Vec<Dimension>List of relevant values for this charging period.
tariff_id: Option<String>Unique identifier of the Tariff that is relevant for this Charging Period.
In the OCPI spec the tariff_id field is optional but, we always know the tariff ID
when generating a CDR.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ChargingPeriod
impl RefUnwindSafe for ChargingPeriod
impl Send for ChargingPeriod
impl Sync for ChargingPeriod
impl Unpin 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