ocpp-csms-server-sdk 0.1.47

A workspace for the OCPP CSMS server
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::ocpp_csms_server;

#[derive(Debug, Clone, Copy, PartialEq, Eq, Default)]
pub enum RebootType {
    #[default]
    Soft,
    Hard,
}

impl From<RebootType> for ocpp_csms_server::reboot_charger_request::RebootType {
    fn from(value: RebootType) -> Self {
        match value {
            RebootType::Soft => Self::Soft,
            RebootType::Hard => Self::Hard,
        }
    }
}