Enum rust_ocpp::v1_6::types::ChargingRateUnitType [−][src]
pub enum ChargingRateUnitType {
W,
A,
}Expand description
Unit in which a charging schedule is defined, as used in: GetCompositeSchedule.req and ChargingSchedule
Variants
Watts (power). This is the TOTAL allowed charging power. If used for AC Charging, the phase current should be calculated via: Current per phase = Power / (Line Voltage * Number of Phases). The “Line Voltage” used in the calculation is not the measured voltage, but the set voltage for the area (hence, 230 of 110 volt). The “Number of Phases” is the numberPhases from the ChargingSchedulePeriod. It is usually more convenient to use this for DC charging. Note that if numberPhases in a ChargingSchedulePeriod is absent, 3 SHALL be assumed.
Amperes (current). The amount of Ampere per phase, not the sum of all phases. It is usually more convenient to use this for AC charging.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for ChargingRateUnitType
impl Send for ChargingRateUnitType
impl Sync for ChargingRateUnitType
impl Unpin for ChargingRateUnitType
impl UnwindSafe for ChargingRateUnitType
Blanket Implementations
Mutably borrows from an owned value. Read more