Struct rust_ocpp::v1_6::types::ChargingSchedulePeriod
source · pub struct ChargingSchedulePeriod {
pub start_period: i64,
pub limit: f64,
pub number_phases: Option<i64>,
}
Expand description
Charging schedule period structure defines a time period in a charging schedule, as used in: ChargingSchedule.
Fields§
§start_period: i64
Required. Start of the period, in seconds from the start of schedule. The value of StartPeriod also defines the stop time of the previous period.
limit: f64
Required. Charging rate limit during the schedule period, in the applicable chargingRateUnit, for example in Amperes or Watts. Accepts at most one digit fraction (e.g. 8.1).
number_phases: Option<i64>
Optional. 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.
Trait Implementations§
source§impl Clone for ChargingSchedulePeriod
impl Clone for ChargingSchedulePeriod
source§fn clone(&self) -> ChargingSchedulePeriod
fn clone(&self) -> ChargingSchedulePeriod
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ChargingSchedulePeriod
impl Debug for ChargingSchedulePeriod
source§impl Default for ChargingSchedulePeriod
impl Default for ChargingSchedulePeriod
source§fn default() -> ChargingSchedulePeriod
fn default() -> ChargingSchedulePeriod
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ChargingSchedulePeriod
impl<'de> Deserialize<'de> for ChargingSchedulePeriod
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<ChargingSchedulePeriod> for ChargingSchedulePeriod
impl PartialEq<ChargingSchedulePeriod> for ChargingSchedulePeriod
source§fn eq(&self, other: &ChargingSchedulePeriod) -> bool
fn eq(&self, other: &ChargingSchedulePeriod) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.