pub struct NotifyEventRequest {
pub generated_at: DateTime,
pub seq_no: i32,
pub event_data: Vec<EventData>,
pub tbc: Option<bool>,
pub custom_data: Option<CustomData>,
}Expand description
Spec: OCPP 2.1 · N — Diagnostics · Charging Station → CSMS · CALL.
Fields§
§generated_at: DateTimeTimestamp of the moment this message was generated at the Charging Station.
seq_no: i32Sequence number of this message. First message starts at 0.
event_data: Vec<EventData>The eventData member.
tbc: Option<bool>“to be continued” indicator. Indicates whether another part of the report follows in an upcoming notifyEventRequest message. Default value when omitted is false.
Schema default: false.
custom_data: Option<CustomData>The customData member.
Implementations§
Source§impl NotifyEventRequest
impl NotifyEventRequest
Sourcepub fn new(
generated_at: impl Into<DateTime>,
seq_no: i32,
event_data: Vec<EventData>,
) -> Self
pub fn new( generated_at: impl Into<DateTime>, seq_no: i32, event_data: Vec<EventData>, ) -> Self
Creates a NotifyEventRequest 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 NotifyEventRequest
impl Clone for NotifyEventRequest
Source§fn clone(&self) -> NotifyEventRequest
fn clone(&self) -> NotifyEventRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Confirmed for NotifyEventRequest
Source§impl Debug for NotifyEventRequest
impl Debug for NotifyEventRequest
Source§impl<'de> Deserialize<'de> for NotifyEventRequest
impl<'de> Deserialize<'de> for NotifyEventRequest
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 NotifyEventRequest
impl PartialEq for NotifyEventRequest
Source§impl Request for NotifyEventRequest
impl Request for NotifyEventRequest
Source§const KIND: MessageKind = MessageKind::Call
const KIND: MessageKind = MessageKind::Call
CALL or SEND.Source§type Response = NotifyEventResponse
type Response = NotifyEventResponse
The matching response payload, or
NoResponse for a SEND.impl Sealed for NotifyEventRequest
Source§impl Serialize for NotifyEventRequest
impl Serialize for NotifyEventRequest
impl StructuralPartialEq for NotifyEventRequest
Source§impl Validate for NotifyEventRequest
impl Validate for NotifyEventRequest
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 Freeze for NotifyEventRequest
impl RefUnwindSafe for NotifyEventRequest
impl Send for NotifyEventRequest
impl Sync for NotifyEventRequest
impl Unpin for NotifyEventRequest
impl UnsafeUnpin for NotifyEventRequest
impl UnwindSafe for NotifyEventRequest
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