pub struct ChargingSchedulePeriod<CustomDataType = NoCustomData> {
pub custom_data: Option<CustomDataType>,
pub limit: f64,
pub number_phases: Option<i64>,
pub phase_to_use: Option<i64>,
pub start_period: i64,
}Expand description
Charging_ Schedule_ Period urn:x-oca:ocpp:uid:2:233257 Charging schedule period structure defines a time period in a charging schedule.
Fields§
§custom_data: Option<CustomDataType>§limit: f64Charging_ Schedule_ Period. Limit. Measure urn:x-oca:ocpp:uid:1:569241 Charging rate limit during the schedule period, in the applicable chargingRateUnit, for example in Amperes (A) or Watts (W). Accepts at most one digit fraction (e.g. 8.1).
number_phases: Option<i64>Charging_ Schedule_ Period. Number_ Phases. Counter urn:x-oca:ocpp:uid:1:569242 The number of phases that can be used for charging. If a number of phases is needed, numberPhases=3 will be assumed unless another number is given.
phase_to_use: Option<i64>Values: 1..3, Used if numberPhases=1 and if the EVSE is capable of switching the phase connected to the EV, i.e. ACPhaseSwitchingSupported is defined and true. It’s not allowed unless both conditions above are true. If both conditions are true, and phaseToUse is omitted, the Charging Station / EVSE will make the selection on its own.
start_period: i64Charging_ Schedule_ Period. Start_ Period. Elapsed_ Time urn:x-oca:ocpp:uid:1:569240 Start of the period, in seconds from the start of schedule. The value of StartPeriod also defines the stop time of the previous period.
Trait Implementations§
Source§impl<CustomDataType: Clone> Clone for ChargingSchedulePeriod<CustomDataType>
impl<CustomDataType: Clone> Clone for ChargingSchedulePeriod<CustomDataType>
Source§fn clone(&self) -> ChargingSchedulePeriod<CustomDataType>
fn clone(&self) -> ChargingSchedulePeriod<CustomDataType>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<CustomDataType: Debug> Debug for ChargingSchedulePeriod<CustomDataType>
impl<CustomDataType: Debug> Debug for ChargingSchedulePeriod<CustomDataType>
Source§impl<'de, CustomDataType> Deserialize<'de> for ChargingSchedulePeriod<CustomDataType>where
CustomDataType: Deserialize<'de>,
impl<'de, CustomDataType> Deserialize<'de> for ChargingSchedulePeriod<CustomDataType>where
CustomDataType: Deserialize<'de>,
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<CustomDataType: PartialEq> PartialEq for ChargingSchedulePeriod<CustomDataType>
impl<CustomDataType: PartialEq> PartialEq for ChargingSchedulePeriod<CustomDataType>
Source§impl<CustomDataType> Serialize for ChargingSchedulePeriod<CustomDataType>where
CustomDataType: Serialize,
impl<CustomDataType> Serialize for ChargingSchedulePeriod<CustomDataType>where
CustomDataType: Serialize,
impl<CustomDataType: PartialEq> StructuralPartialEq for ChargingSchedulePeriod<CustomDataType>
Source§impl<CustomDataType> Validate for ChargingSchedulePeriod<CustomDataType>
Available on crate feature validate only.
impl<CustomDataType> Validate for ChargingSchedulePeriod<CustomDataType>
validate only.