pub struct NotifyChargingLimitRequest {
pub charging_limit: ChargingLimit,
pub charging_schedule: Option<Vec<ChargingSchedule>>,
pub evse_id: Option<i32>,
pub custom_data: Option<CustomData>,
}Expand description
Spec: OCPP 2.1 · K — Smart Charging · Charging Station → CSMS · CALL.
Fields§
§charging_limit: ChargingLimitThe chargingLimit member.
charging_schedule: Option<Vec<ChargingSchedule>>The chargingSchedule member.
evse_id: Option<i32>The EVSE to which the charging limit is set. If absent or when zero, it applies to the entire Charging Station.
custom_data: Option<CustomData>The customData member.
Implementations§
Source§impl NotifyChargingLimitRequest
impl NotifyChargingLimitRequest
Sourcepub fn new(charging_limit: ChargingLimit) -> Self
pub fn new(charging_limit: ChargingLimit) -> Self
Creates a NotifyChargingLimitRequest from its required fields.
Sourcepub fn with_charging_schedule(self, value: Vec<ChargingSchedule>) -> Self
pub fn with_charging_schedule(self, value: Vec<ChargingSchedule>) -> Self
Sets the optional chargingSchedule field.
Sourcepub fn with_evse_id(self, value: i32) -> Self
pub fn with_evse_id(self, value: i32) -> Self
Sets the optional evseId field.
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 NotifyChargingLimitRequest
impl Clone for NotifyChargingLimitRequest
impl Confirmed for NotifyChargingLimitRequest
Source§impl Debug for NotifyChargingLimitRequest
impl Debug for NotifyChargingLimitRequest
Source§impl<'de> Deserialize<'de> for NotifyChargingLimitRequest
impl<'de> Deserialize<'de> for NotifyChargingLimitRequest
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 NotifyChargingLimitRequest
impl Request for NotifyChargingLimitRequest
Source§const KIND: MessageKind = MessageKind::Call
const KIND: MessageKind = MessageKind::Call
CALL or SEND.Source§type Response = NotifyChargingLimitResponse
type Response = NotifyChargingLimitResponse
The matching response payload, or
NoResponse for a SEND.impl Sealed for NotifyChargingLimitRequest
impl StructuralPartialEq for NotifyChargingLimitRequest
Source§impl Validate for NotifyChargingLimitRequest
impl Validate for NotifyChargingLimitRequest
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 NotifyChargingLimitRequest
impl Freeze for NotifyChargingLimitRequest
impl Move for NotifyChargingLimitRequest
impl RefUnwindSafe for NotifyChargingLimitRequest
impl Send for NotifyChargingLimitRequest
impl Sync for NotifyChargingLimitRequest
impl Unpin for NotifyChargingLimitRequest
impl UnsafeUnpin for NotifyChargingLimitRequest
impl UnwindSafe for NotifyChargingLimitRequest
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