Struct rust_ocpp::v1_6::types::ChargingSchedule
source · pub struct ChargingSchedule {
pub duration: Option<i32>,
pub start_schedule: Option<DateTime<Utc>>,
pub charging_rate_unit: ChargingRateUnitType,
pub charging_schedule_period: Vec<ChargingSchedulePeriod>,
pub min_charging_rate: Option<f32>,
}
Expand description
Charging schedule structure defines a list of charging periods, as used in: GetCompositeSchedule.conf and ChargingProfile.
Fields§
§duration: Option<i32>
Optional. Duration of the charging schedule in seconds. If the duration is left empty, the last period will continue indefinitely or until end of the transaction in case startSchedule is absent.
start_schedule: Option<DateTime<Utc>>
Optional. Starting point of an absolute schedule. If absent the schedule will be relative to start of charging.
charging_rate_unit: ChargingRateUnitType
Required. The unit of measure Limit is expressed in.
charging_schedule_period: Vec<ChargingSchedulePeriod>
Required. List of ChargingSchedulePeriod elements defining maximum power or current usage over time. The startSchedule of the first ChargingSchedulePeriod SHALL always be 0.
min_charging_rate: Option<f32>
Optional. Minimum charging rate supported by the electric vehicle. The unit of measure is defined by the chargingRateUnit. This parameter is intended to be used by a local smart charging algorithm to optimize the power allocation for in the case a charging process is inefficient at lower charging rates. Accepts at most one digit fraction (e.g. 8.1)
Trait Implementations§
source§impl Clone for ChargingSchedule
impl Clone for ChargingSchedule
source§fn clone(&self) -> ChargingSchedule
fn clone(&self) -> ChargingSchedule
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ChargingSchedule
impl Debug for ChargingSchedule
source§impl Default for ChargingSchedule
impl Default for ChargingSchedule
source§fn default() -> ChargingSchedule
fn default() -> ChargingSchedule
source§impl<'de> Deserialize<'de> for ChargingSchedule
impl<'de> Deserialize<'de> for ChargingSchedule
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 ChargingSchedule
impl PartialEq for ChargingSchedule
source§fn eq(&self, other: &ChargingSchedule) -> bool
fn eq(&self, other: &ChargingSchedule) -> bool
self
and other
values to be equal, and is used
by ==
.