You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: allow deserialization of optional decimals (#139)
the 'rust_decimal::serde::arbitrary_precision_option' macro
requires 'default' to be specified to allow deserializing
the objects when the value is not present
Copy file name to clipboardExpand all lines: src/v1_6/types/charging_schedule.rs
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,10 @@ pub struct ChargingSchedule {
18
18
/// Required. List of ChargingSchedulePeriod elements defining maximum power or current usage over time. The startSchedule of the first ChargingSchedulePeriod SHALL always be 0.
/// 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)
/// Required. The unit of measure Limit is expressed in.
24
24
pubcharging_rate_unit:ChargingRateUnitEnumType,
25
25
/// Optional. 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)
with = "rust_decimal::serde::arbitrary_precision_option",
28
+
skip_serializing_if = "Option::is_none",
29
+
default
30
+
)]
28
31
pubmin_charging_rate:Option<Decimal>,
29
32
/// Required. List of ChargingSchedulePeriod elements defining maximum power or current usage over time. The maximum number of periods, that is supported by the Charging Station, if less than 1024, is set by device model variable SmartChargingCtrlr.PeriodsPerSchedule
0 commit comments