pub struct ChangeAvailabilityRequest {
pub operational_status: OperationalStatus,
pub evse: Option<EVSE>,
pub custom_data: Option<CustomData>,
}Expand description
Spec: OCPP 2.1 · G — Availability · CSMS → Charging Station · CALL.
Fields§
§operational_status: OperationalStatusThe operationalStatus member.
evse: Option<EVSE>The evse member.
custom_data: Option<CustomData>The customData member.
Implementations§
Source§impl ChangeAvailabilityRequest
impl ChangeAvailabilityRequest
Sourcepub fn new(operational_status: OperationalStatus) -> Self
pub fn new(operational_status: OperationalStatus) -> Self
Creates a ChangeAvailabilityRequest 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 ChangeAvailabilityRequest
impl Clone for ChangeAvailabilityRequest
impl Confirmed for ChangeAvailabilityRequest
Source§impl Debug for ChangeAvailabilityRequest
impl Debug for ChangeAvailabilityRequest
Source§impl<'de> Deserialize<'de> for ChangeAvailabilityRequest
impl<'de> Deserialize<'de> for ChangeAvailabilityRequest
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 ChangeAvailabilityRequest
impl Request for ChangeAvailabilityRequest
Source§const KIND: MessageKind = MessageKind::Call
const KIND: MessageKind = MessageKind::Call
CALL or SEND.Source§type Response = ChangeAvailabilityResponse
type Response = ChangeAvailabilityResponse
The matching response payload, or
NoResponse for a SEND.impl Sealed for ChangeAvailabilityRequest
impl StructuralPartialEq for ChangeAvailabilityRequest
Source§impl Validate for ChangeAvailabilityRequest
impl Validate for ChangeAvailabilityRequest
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 ChangeAvailabilityRequest
impl Freeze for ChangeAvailabilityRequest
impl Move for ChangeAvailabilityRequest
impl RefUnwindSafe for ChangeAvailabilityRequest
impl Send for ChangeAvailabilityRequest
impl Sync for ChangeAvailabilityRequest
impl Unpin for ChangeAvailabilityRequest
impl UnsafeUnpin for ChangeAvailabilityRequest
impl UnwindSafe for ChangeAvailabilityRequest
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