Enum rust_ocpp::v1_6::types::ChargingRateUnitType
source · pub enum ChargingRateUnitType {
W,
A,
}Expand description
Unit in which a charging schedule is defined, as used in: GetCompositeSchedule.req and ChargingSchedule
Variants§
W
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.
A
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§
source§impl Clone for ChargingRateUnitType
impl Clone for ChargingRateUnitType
source§fn clone(&self) -> ChargingRateUnitType
fn clone(&self) -> ChargingRateUnitType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ChargingRateUnitType
impl Debug for ChargingRateUnitType
source§impl Default for ChargingRateUnitType
impl Default for ChargingRateUnitType
source§fn default() -> ChargingRateUnitType
fn default() -> ChargingRateUnitType
source§impl<'de> Deserialize<'de> for ChargingRateUnitType
impl<'de> Deserialize<'de> for ChargingRateUnitType
source§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>,
source§impl PartialEq for ChargingRateUnitType
impl PartialEq for ChargingRateUnitType
source§impl Serialize for ChargingRateUnitType
impl Serialize for ChargingRateUnitType
impl StructuralPartialEq for ChargingRateUnitType
Auto Trait Implementations§
impl Freeze for ChargingRateUnitType
impl RefUnwindSafe for ChargingRateUnitType
impl Send for ChargingRateUnitType
impl Sync for ChargingRateUnitType
impl Unpin for ChargingRateUnitType
impl UnwindSafe for ChargingRateUnitType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)