pub struct SetChargingProfileRequest {
pub evse_id: i32,
pub charging_profile: ChargingProfile,
pub custom_data: Option<CustomData>,
}Expand description
Spec: OCPP 2.1 · K — Smart Charging · CSMS → Charging Station · CALL.
Fields§
§evse_id: i32For TxDefaultProfile an evseId=0 applies the profile to each individual evse. For ChargingStationMaxProfile and ChargingStationExternalConstraints an evseId=0 contains an overal limit for the whole Charging Station.
charging_profile: ChargingProfileThe chargingProfile member.
custom_data: Option<CustomData>The customData member.
Implementations§
Source§impl SetChargingProfileRequest
impl SetChargingProfileRequest
Sourcepub fn new(evse_id: i32, charging_profile: ChargingProfile) -> Self
pub fn new(evse_id: i32, charging_profile: ChargingProfile) -> Self
Creates a SetChargingProfileRequest from its required fields.
Sourcepub fn with_custom_data(self, value: CustomData) -> Self
pub fn with_custom_data(self, value: CustomData) -> Self
Sets the optional customData field.
Trait Implementations§
Source§impl Clone for SetChargingProfileRequest
impl Clone for SetChargingProfileRequest
impl Confirmed for SetChargingProfileRequest
Source§impl Debug for SetChargingProfileRequest
impl Debug for SetChargingProfileRequest
Source§impl<'de> Deserialize<'de> for SetChargingProfileRequest
impl<'de> Deserialize<'de> for SetChargingProfileRequest
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Request for SetChargingProfileRequest
impl Request for SetChargingProfileRequest
Source§const KIND: MessageKind = MessageKind::Call
const KIND: MessageKind = MessageKind::Call
CALL or SEND.Source§type Response = SetChargingProfileResponse
type Response = SetChargingProfileResponse
The matching response payload, or
NoResponse for a SEND.impl Sealed for SetChargingProfileRequest
impl StructuralPartialEq for SetChargingProfileRequest
Source§impl Validate for SetChargingProfileRequest
impl Validate for SetChargingProfileRequest
Source§fn validate_at(&self, path: &mut ValidationPath, out: &mut Violations)
fn validate_at(&self, path: &mut ValidationPath, out: &mut Violations)
Appends this value’s violations to
out, relative to path.Auto Trait Implementations§
impl Forget for SetChargingProfileRequest
impl Freeze for SetChargingProfileRequest
impl Move for SetChargingProfileRequest
impl RefUnwindSafe for SetChargingProfileRequest
impl Send for SetChargingProfileRequest
impl Sync for SetChargingProfileRequest
impl Unpin for SetChargingProfileRequest
impl UnsafeUnpin for SetChargingProfileRequest
impl UnwindSafe for SetChargingProfileRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more