pub struct BootNotificationResponse {
pub current_time: DateTime,
pub interval: i32,
pub status: RegistrationStatus,
pub status_info: Option<StatusInfo>,
pub custom_data: Option<CustomData>,
}Expand description
Spec: OCPP 2.1 · B — Provisioning · Charging Station → CSMS · CALL.
Fields§
§current_time: DateTimeThis contains the CSMS’s current time.
interval: i32When <<cmn_registrationstatusenumtype,Status>> is Accepted, this contains the heartbeat interval in seconds. If the CSMS returns something other than Accepted, the value of the interval field indicates the minimum wait time before sending a next BootNotification request.
status: RegistrationStatusThe status member.
status_info: Option<StatusInfo>The statusInfo member.
custom_data: Option<CustomData>The customData member.
Implementations§
Source§impl BootNotificationResponse
impl BootNotificationResponse
Sourcepub fn new(
current_time: impl Into<DateTime>,
interval: i32,
status: RegistrationStatus,
) -> Self
pub fn new( current_time: impl Into<DateTime>, interval: i32, status: RegistrationStatus, ) -> Self
Creates a BootNotificationResponse from its required fields.
Sourcepub fn with_status_info(self, value: StatusInfo) -> Self
pub fn with_status_info(self, value: StatusInfo) -> Self
Sets the optional statusInfo 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 BootNotificationResponse
impl Clone for BootNotificationResponse
Source§impl Debug for BootNotificationResponse
impl Debug for BootNotificationResponse
Source§impl<'de> Deserialize<'de> for BootNotificationResponse
impl<'de> Deserialize<'de> for BootNotificationResponse
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 BootNotificationResponse
impl PartialEq for BootNotificationResponse
impl Response for BootNotificationResponse
impl Sealed for BootNotificationResponse
Source§impl Serialize for BootNotificationResponse
impl Serialize for BootNotificationResponse
impl StructuralPartialEq for BootNotificationResponse
Source§impl Validate for BootNotificationResponse
impl Validate for BootNotificationResponse
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 BootNotificationResponse
impl Freeze for BootNotificationResponse
impl RefUnwindSafe for BootNotificationResponse
impl Send for BootNotificationResponse
impl Sync for BootNotificationResponse
impl Unpin for BootNotificationResponse
impl UnsafeUnpin for BootNotificationResponse
impl UnwindSafe for BootNotificationResponse
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