pub struct ChargingSchedule {
pub duration: Option<i64>,
pub start_schedule: Option<DateTime<Utc>>,
pub charging_rate_unit: ChargingRateUnitType,
pub charging_schedule_period: Vec<ChargingSchedulePeriod>,
pub min_charging_rate: Option<f64>,
}
Expand description
Charging schedule structure defines a list of charging periods, as used in: GetCompositeSchedule.conf and ChargingProfile.
Fields
duration: Option<i64>
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<f64>
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
sourceimpl Clone for ChargingSchedule
impl Clone for ChargingSchedule
sourcefn clone(&self) -> ChargingSchedule
fn clone(&self) -> ChargingSchedule
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ChargingSchedule
impl Debug for ChargingSchedule
sourceimpl<'de> Deserialize<'de> for ChargingSchedule
impl<'de> Deserialize<'de> for ChargingSchedule
sourcefn 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
sourceimpl PartialEq<ChargingSchedule> for ChargingSchedule
impl PartialEq<ChargingSchedule> for ChargingSchedule
sourcefn eq(&self, other: &ChargingSchedule) -> bool
fn eq(&self, other: &ChargingSchedule) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ChargingSchedule) -> bool
fn ne(&self, other: &ChargingSchedule) -> bool
This method tests for !=
.
sourceimpl Serialize for ChargingSchedule
impl Serialize for ChargingSchedule
impl StructuralPartialEq for ChargingSchedule
Auto Trait Implementations
impl RefUnwindSafe for ChargingSchedule
impl Send for ChargingSchedule
impl Sync for ChargingSchedule
impl Unpin for ChargingSchedule
impl UnwindSafe for ChargingSchedule
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more