ocpp-csms-server-sdk 0.1.45

A workspace for the OCPP CSMS server
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::event::charging_state::ChargingState;
use crate::event::stopped_reason::StoppedReason;
use chrono::Duration;
use serde::{Deserialize, Serialize};
use uuid::Uuid;

#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct TransactionInfo {
    pub id: Uuid,
    pub charging_state: Option<ChargingState>,
    pub time_spent_charging: Option<Duration>,
    pub stopped_reason: Option<StoppedReason>,
}