pub struct ChargingSchedule<CustomDataType = NoCustomData> {
pub charging_rate_unit: ChargingRateUnitEnum,
pub charging_schedule_period: Vec<ChargingSchedulePeriod<CustomDataType>>,
pub custom_data: Option<CustomDataType>,
pub duration: Option<i64>,
pub id: i64,
pub min_charging_rate: Option<f64>,
pub sales_tariff: Option<SalesTariff<CustomDataType>>,
pub start_schedule: Option<OcppTimestamp>,
}Expand description
Charging_ Schedule urn:x-oca:ocpp:uid:2:233256 Charging schedule structure defines a list of charging periods, as used in: GetCompositeSchedule.conf and ChargingProfile.
Fields§
§charging_rate_unit: ChargingRateUnitEnum§charging_schedule_period: Vec<ChargingSchedulePeriod<CustomDataType>>§custom_data: Option<CustomDataType>§duration: Option<i64>Charging_ Schedule. Duration. Elapsed_ Time urn:x-oca:ocpp:uid:1:569236 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 if chargingProfilePurpose = TxProfile.
id: i64Identifies the ChargingSchedule.
min_charging_rate: Option<f64>Charging_ Schedule. Min_ Charging_ Rate. Numeric urn:x-oca:ocpp:uid:1:569239 Minimum charging rate supported by the EV. 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)
sales_tariff: Option<SalesTariff<CustomDataType>>§start_schedule: Option<OcppTimestamp>Charging_ Schedule. Start_ Schedule. Date_ Time urn:x-oca:ocpp:uid:1:569237 Starting point of an absolute schedule. If absent the schedule will be relative to start of charging.
Trait Implementations§
Source§impl<CustomDataType: Clone> Clone for ChargingSchedule<CustomDataType>
impl<CustomDataType: Clone> Clone for ChargingSchedule<CustomDataType>
Source§fn clone(&self) -> ChargingSchedule<CustomDataType>
fn clone(&self) -> ChargingSchedule<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 ChargingSchedule<CustomDataType>
impl<CustomDataType: Debug> Debug for ChargingSchedule<CustomDataType>
Source§impl<'de, CustomDataType> Deserialize<'de> for ChargingSchedule<CustomDataType>where
CustomDataType: Deserialize<'de>,
impl<'de, CustomDataType> Deserialize<'de> for ChargingSchedule<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 ChargingSchedule<CustomDataType>
impl<CustomDataType: PartialEq> PartialEq for ChargingSchedule<CustomDataType>
Source§impl<CustomDataType> Serialize for ChargingSchedule<CustomDataType>where
CustomDataType: Serialize,
impl<CustomDataType> Serialize for ChargingSchedule<CustomDataType>where
CustomDataType: Serialize,
impl<CustomDataType: PartialEq> StructuralPartialEq for ChargingSchedule<CustomDataType>
Source§impl<CustomDataType> Validate for ChargingSchedule<CustomDataType>
Available on crate features alloc and validate only.
impl<CustomDataType> Validate for ChargingSchedule<CustomDataType>
alloc and validate only.