pub struct NotifyPeriodicEventStreamRequest {
pub data: Vec<StreamDataElement>,
pub id: i32,
pub pending: i32,
pub basetime: DateTime,
pub custom_data: Option<CustomData>,
}Expand description
Spec: OCPP 2.1 · N — Diagnostics · Charging Station → CSMS · SEND (unconfirmed, never answered — Part 4 §4.2.4).
Fields§
§data: Vec<StreamDataElement>The data member.
id: i32Id of stream.
pending: i32Number of data elements still pending to be sent.
basetime: DateTimeBase timestamp to add to time offset of values.
custom_data: Option<CustomData>The customData member.
Implementations§
Source§impl NotifyPeriodicEventStreamRequest
impl NotifyPeriodicEventStreamRequest
Sourcepub fn new(
data: Vec<StreamDataElement>,
id: i32,
pending: i32,
basetime: impl Into<DateTime>,
) -> Self
pub fn new( data: Vec<StreamDataElement>, id: i32, pending: i32, basetime: impl Into<DateTime>, ) -> Self
Creates a NotifyPeriodicEventStreamRequest 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<'de> Deserialize<'de> for NotifyPeriodicEventStreamRequest
impl<'de> Deserialize<'de> for NotifyPeriodicEventStreamRequest
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 NotifyPeriodicEventStreamRequest
impl Request for NotifyPeriodicEventStreamRequest
Source§const KIND: MessageKind = MessageKind::Send
const KIND: MessageKind = MessageKind::Send
CALL or SEND.Source§type Response = NoResponse
type Response = NoResponse
The matching response payload, or
NoResponse for a SEND.impl Sealed for NotifyPeriodicEventStreamRequest
impl StructuralPartialEq for NotifyPeriodicEventStreamRequest
impl Unconfirmed for NotifyPeriodicEventStreamRequest
Source§impl Validate for NotifyPeriodicEventStreamRequest
impl Validate for NotifyPeriodicEventStreamRequest
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 NotifyPeriodicEventStreamRequest
impl Freeze for NotifyPeriodicEventStreamRequest
impl Move for NotifyPeriodicEventStreamRequest
impl RefUnwindSafe for NotifyPeriodicEventStreamRequest
impl Send for NotifyPeriodicEventStreamRequest
impl Sync for NotifyPeriodicEventStreamRequest
impl Unpin for NotifyPeriodicEventStreamRequest
impl UnsafeUnpin for NotifyPeriodicEventStreamRequest
impl UnwindSafe for NotifyPeriodicEventStreamRequest
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