Skip to main content

ChargingSchedule

Struct ChargingSchedule 

Source
pub struct ChargingSchedule<const CHARGING_SCHEDULE_START_SCHEDULE_CAP: usize = 1024> {
    pub charging_rate_unit: ChargingRateUnitEnum,
    pub charging_schedule_period: Vec<ChargingSchedulePeriod, 1024usize>,
    pub custom_data: Option<CustomData>,
    pub duration: Option<i64>,
    pub id: i64,
    pub min_charging_rate: Option<f64>,
    pub sales_tariff: Option<SalesTariff>,
    pub start_schedule: Option<String<CHARGING_SCHEDULE_START_SCHEDULE_CAP>>,
}
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, 1024usize>§custom_data: Option<CustomData>§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: i64

Identifies 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>§start_schedule: Option<String<CHARGING_SCHEDULE_START_SCHEDULE_CAP>>

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<const CHARGING_SCHEDULE_START_SCHEDULE_CAP: usize> Clone for ChargingSchedule<CHARGING_SCHEDULE_START_SCHEDULE_CAP>

Source§

fn clone(&self) -> ChargingSchedule<CHARGING_SCHEDULE_START_SCHEDULE_CAP>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<const CHARGING_SCHEDULE_START_SCHEDULE_CAP: usize> Debug for ChargingSchedule<CHARGING_SCHEDULE_START_SCHEDULE_CAP>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<const CHARGING_SCHEDULE_START_SCHEDULE_CAP: usize> PartialEq for ChargingSchedule<CHARGING_SCHEDULE_START_SCHEDULE_CAP>

Source§

fn eq( &self, other: &ChargingSchedule<CHARGING_SCHEDULE_START_SCHEDULE_CAP>, ) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl<const CHARGING_SCHEDULE_START_SCHEDULE_CAP: usize> StructuralPartialEq for ChargingSchedule<CHARGING_SCHEDULE_START_SCHEDULE_CAP>

Auto Trait Implementations§

§

impl<const CHARGING_SCHEDULE_START_SCHEDULE_CAP: usize> Freeze for ChargingSchedule<CHARGING_SCHEDULE_START_SCHEDULE_CAP>

§

impl<const CHARGING_SCHEDULE_START_SCHEDULE_CAP: usize> RefUnwindSafe for ChargingSchedule<CHARGING_SCHEDULE_START_SCHEDULE_CAP>

§

impl<const CHARGING_SCHEDULE_START_SCHEDULE_CAP: usize> Send for ChargingSchedule<CHARGING_SCHEDULE_START_SCHEDULE_CAP>

§

impl<const CHARGING_SCHEDULE_START_SCHEDULE_CAP: usize> Sync for ChargingSchedule<CHARGING_SCHEDULE_START_SCHEDULE_CAP>

§

impl<const CHARGING_SCHEDULE_START_SCHEDULE_CAP: usize> Unpin for ChargingSchedule<CHARGING_SCHEDULE_START_SCHEDULE_CAP>

§

impl<const CHARGING_SCHEDULE_START_SCHEDULE_CAP: usize> UnsafeUnpin for ChargingSchedule<CHARGING_SCHEDULE_START_SCHEDULE_CAP>

§

impl<const CHARGING_SCHEDULE_START_SCHEDULE_CAP: usize> UnwindSafe for ChargingSchedule<CHARGING_SCHEDULE_START_SCHEDULE_CAP>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.