pub struct ChargingProfile<CustomDataType = NoCustomData> {
pub charging_profile_kind: ChargingProfileKindEnum,
pub charging_profile_purpose: ChargingProfilePurposeEnum,
pub charging_schedule: Vec<ChargingSchedule<CustomDataType>, 3usize>,
pub custom_data: Option<CustomDataType>,
pub id: i64,
pub recurrency_kind: Option<RecurrencyKindEnum>,
pub stack_level: i64,
pub transaction_id: Option<String<36usize>>,
pub valid_from: Option<OcppTimestamp>,
pub valid_to: Option<OcppTimestamp>,
}Expand description
Charging_ Profile urn:x-oca:ocpp:uid:2:233255 A ChargingProfile consists of ChargingSchedule, describing the amount of power or current that can be delivered per time interval.
Fields§
§charging_profile_kind: ChargingProfileKindEnum§charging_profile_purpose: ChargingProfilePurposeEnum§charging_schedule: Vec<ChargingSchedule<CustomDataType>, 3usize>§custom_data: Option<CustomDataType>§id: i64Identified_ Object. MRID. Numeric_ Identifier urn:x-enexis:ecdm:uid:1:569198 Id of ChargingProfile.
recurrency_kind: Option<RecurrencyKindEnum>§stack_level: i64Charging_ Profile. Stack_ Level. Counter urn:x-oca:ocpp:uid:1:569230 Value determining level in hierarchy stack of profiles. Higher values have precedence over lower values. Lowest level is 0.
transaction_id: Option<String<36usize>>SHALL only be included if ChargingProfilePurpose is set to TxProfile. The transactionId is used to match the profile to a specific transaction.
valid_from: Option<OcppTimestamp>Charging_ Profile. Valid_ From. Date_ Time urn:x-oca:ocpp:uid:1:569234 Point in time at which the profile starts to be valid. If absent, the profile is valid as soon as it is received by the Charging Station.
valid_to: Option<OcppTimestamp>Charging_ Profile. Valid_ To. Date_ Time urn:x-oca:ocpp:uid:1:569235 Point in time at which the profile stops to be valid. If absent, the profile is valid until it is replaced by another profile.
Trait Implementations§
Source§impl<CustomDataType: Clone> Clone for ChargingProfile<CustomDataType>
impl<CustomDataType: Clone> Clone for ChargingProfile<CustomDataType>
Source§fn clone(&self) -> ChargingProfile<CustomDataType>
fn clone(&self) -> ChargingProfile<CustomDataType>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<CustomDataType: Debug> Debug for ChargingProfile<CustomDataType>
impl<CustomDataType: Debug> Debug for ChargingProfile<CustomDataType>
Source§impl<'de, CustomDataType> Deserialize<'de> for ChargingProfile<CustomDataType>where
CustomDataType: Deserialize<'de>,
impl<'de, CustomDataType> Deserialize<'de> for ChargingProfile<CustomDataType>where
CustomDataType: Deserialize<'de>,
Source§fn 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>,
Source§impl<CustomDataType: PartialEq> PartialEq for ChargingProfile<CustomDataType>
impl<CustomDataType: PartialEq> PartialEq for ChargingProfile<CustomDataType>
Source§impl<CustomDataType> Serialize for ChargingProfile<CustomDataType>where
CustomDataType: Serialize,
impl<CustomDataType> Serialize for ChargingProfile<CustomDataType>where
CustomDataType: Serialize,
impl<CustomDataType: PartialEq> StructuralPartialEq for ChargingProfile<CustomDataType>
Source§impl<CustomDataType> Validate for ChargingProfile<CustomDataType>
Available on crate features alloc and validate only.
impl<CustomDataType> Validate for ChargingProfile<CustomDataType>
alloc and validate only.