#[non_exhaustive]pub enum Purpose {
ChargingStationMaxProfile,
TxDefaultProfile,
TxProfile,
ChargingStationExternalConstraints,
PriorityCharging,
LocalGeneration,
}Expand description
What a profile is for, in the order that decides precedence.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ChargingStationMaxProfile
The station’s own ceiling, installed on EVSE 0. Never exceeded.
TxDefaultProfile
The default for any transaction at this EVSE.
TxProfile
A profile for one specific transaction; replaces the default while it applies.
ChargingStationExternalConstraints
A limit imposed from outside the CSMS — a DSO, or a local controller.
PriorityCharging
Priority charging for one transaction (2.1).
LocalGeneration
Local generation (2.1).
Implementations§
Source§impl Purpose
impl Purpose
Sourcepub const fn settable_by_csms(self) -> bool
pub const fn settable_by_csms(self) -> bool
Whether a CSMS may install a profile of this purpose with SetChargingProfile.
No for ChargingStationExternalConstraints (K01.FR.62, 2.0.1 edition 4 and 2.1
edition 2 errata) and LocalGeneration (K01.FR.64, 2.1): both are set locally — by an
energy manager or the station’s own metering — and a SetChargingProfileRequest
carrying one is answered Rejected with reasonCode UnsupportedPurpose.
ProfileStore::install accepts every purpose, because the local sources need it to;
a SetChargingProfile handler checks this first.