rust-ocpp 3.0.4

ocpp 1.6, 2.0.1 and 2.1 libraries
Documentation
use serde::{Deserialize, Serialize};

/// Unit of the Y-axis of DER curve
#[derive(Debug, Clone, PartialEq, Deserialize, Serialize)]
pub enum DERUnitEnumType {
    #[serde(rename = "Not_Applicable")]
    NotApplicable,
    #[serde(rename = "PctMaxW")]
    PctMaxW,
    #[serde(rename = "PctMaxVar")]
    PctMaxVar,
    #[serde(rename = "PctWAvail")]
    PctWAvail,
    #[serde(rename = "PctVarAvail")]
    PctVarAvail,
    #[serde(rename = "PctEffectiveV")]
    PctEffectiveV,
}

impl Default for DERUnitEnumType {
    fn default() -> Self {
        Self::NotApplicable
    }
}