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
sourceimpl Clone for ChargingSchedulePeriod
impl Clone for ChargingSchedulePeriod
sourcefn clone(&self) -> ChargingSchedulePeriod
fn clone(&self) -> ChargingSchedulePeriod
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 ChargingSchedulePeriod
impl Debug for ChargingSchedulePeriod
sourceimpl<'de> Deserialize<'de> for ChargingSchedulePeriod
impl<'de> Deserialize<'de> for ChargingSchedulePeriod
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<ChargingSchedulePeriod> for ChargingSchedulePeriod
impl PartialEq<ChargingSchedulePeriod> for ChargingSchedulePeriod
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &ChargingSchedulePeriod) -> bool
fn ne(&self, other: &ChargingSchedulePeriod) -> bool
This method tests for !=
.
sourceimpl Serialize for ChargingSchedulePeriod
impl Serialize for ChargingSchedulePeriod
impl StructuralPartialEq for ChargingSchedulePeriod
Auto Trait Implementations
impl RefUnwindSafe for ChargingSchedulePeriod
impl Send for ChargingSchedulePeriod
impl Sync for ChargingSchedulePeriod
impl Unpin for ChargingSchedulePeriod
impl UnwindSafe for ChargingSchedulePeriod
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