ocpp_client/client.rs
1use crate::ocpp_1_6::OCPP1_6Client;
2use crate::ocpp_2_0_1::OCPP2_0_1Client;
3
4/// Enum representing the different OCPP versions that the client can connect to.
5#[derive(Clone)]
6pub enum Client {
7 #[cfg(feature = "ocpp_1_6")]
8 OCPP1_6(OCPP1_6Client),
9
10 #[cfg(feature = "ocpp_2_0_1")]
11 OCPP2_0_1(OCPP2_0_1Client),
12}