pub struct BootNotificationRequest {
pub charge_point_vendor: String,
pub charge_point_model: String,
pub charge_point_serial_number: Option<String>,
pub charge_box_serial_number: Option<String>,
pub firmware_version: Option<String>,
pub iccid: Option<String>,
pub imsi: Option<String>,
pub meter_type: Option<String>,
pub meter_serial_number: Option<String>,
}Expand description
Spec: OCPP 1.6 · Core · Charging Station → CSMS · CALL.
Fields§
§charge_point_vendor: StringThe chargePointVendor member.
charge_point_model: StringThe chargePointModel member.
charge_point_serial_number: Option<String>The chargePointSerialNumber member.
charge_box_serial_number: Option<String>The chargeBoxSerialNumber member.
firmware_version: Option<String>The firmwareVersion member.
iccid: Option<String>The iccid member.
imsi: Option<String>The imsi member.
meter_type: Option<String>The meterType member.
meter_serial_number: Option<String>The meterSerialNumber member.
Implementations§
Source§impl BootNotificationRequest
impl BootNotificationRequest
Sourcepub fn new(
charge_point_vendor: impl Into<String>,
charge_point_model: impl Into<String>,
) -> Self
pub fn new( charge_point_vendor: impl Into<String>, charge_point_model: impl Into<String>, ) -> Self
Creates a BootNotificationRequest from its required fields.
Sourcepub fn with_charge_point_serial_number(self, value: impl Into<String>) -> Self
pub fn with_charge_point_serial_number(self, value: impl Into<String>) -> Self
Sets the optional chargePointSerialNumber field.
Sourcepub fn with_charge_box_serial_number(self, value: impl Into<String>) -> Self
pub fn with_charge_box_serial_number(self, value: impl Into<String>) -> Self
Sets the optional chargeBoxSerialNumber field.
Sourcepub fn with_firmware_version(self, value: impl Into<String>) -> Self
pub fn with_firmware_version(self, value: impl Into<String>) -> Self
Sets the optional firmwareVersion field.
Sourcepub fn with_iccid(self, value: impl Into<String>) -> Self
pub fn with_iccid(self, value: impl Into<String>) -> Self
Sets the optional iccid field.
Sourcepub fn with_meter_type(self, value: impl Into<String>) -> Self
pub fn with_meter_type(self, value: impl Into<String>) -> Self
Sets the optional meterType field.
Sourcepub fn with_meter_serial_number(self, value: impl Into<String>) -> Self
pub fn with_meter_serial_number(self, value: impl Into<String>) -> Self
Sets the optional meterSerialNumber field.
Trait Implementations§
Source§impl Clone for BootNotificationRequest
impl Clone for BootNotificationRequest
impl Confirmed for BootNotificationRequest
Source§impl Debug for BootNotificationRequest
impl Debug for BootNotificationRequest
Source§impl<'de> Deserialize<'de> for BootNotificationRequest
impl<'de> Deserialize<'de> for BootNotificationRequest
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 PartialEq for BootNotificationRequest
impl PartialEq for BootNotificationRequest
Source§impl Request for BootNotificationRequest
impl Request for BootNotificationRequest
Source§const KIND: MessageKind = MessageKind::Call
const KIND: MessageKind = MessageKind::Call
CALL or SEND.Source§type Response = BootNotificationResponse
type Response = BootNotificationResponse
The matching response payload, or
NoResponse for a SEND.impl Sealed for BootNotificationRequest
Source§impl Serialize for BootNotificationRequest
impl Serialize for BootNotificationRequest
impl StructuralPartialEq for BootNotificationRequest
Source§impl Validate for BootNotificationRequest
impl Validate for BootNotificationRequest
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 BootNotificationRequest
impl Freeze for BootNotificationRequest
impl Move for BootNotificationRequest
impl RefUnwindSafe for BootNotificationRequest
impl Send for BootNotificationRequest
impl Sync for BootNotificationRequest
impl Unpin for BootNotificationRequest
impl UnsafeUnpin for BootNotificationRequest
impl UnwindSafe for BootNotificationRequest
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