pub struct NotifyReportRequest {
pub request_id: i32,
pub generated_at: DateTime,
pub seq_no: i32,
pub report_data: Option<Vec<ReportData>>,
pub tbc: Option<bool>,
pub custom_data: Option<CustomData>,
}Expand description
Spec: OCPP 2.1 · B — Provisioning · Charging Station → CSMS · CALL.
Fields§
§request_id: i32The id of the GetReportRequest or GetBaseReportRequest that requested this report
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.
report_data: Option<Vec<ReportData>>The reportData member.
tbc: Option<bool>“to be continued” indicator. Indicates whether another part of the report follows in an upcoming notifyReportRequest message. Default value when omitted is false.
Schema default: false.
custom_data: Option<CustomData>The customData member.
Implementations§
Source§impl NotifyReportRequest
impl NotifyReportRequest
Sourcepub fn new(
request_id: i32,
generated_at: impl Into<DateTime>,
seq_no: i32,
) -> Self
pub fn new( request_id: i32, generated_at: impl Into<DateTime>, seq_no: i32, ) -> Self
Creates a NotifyReportRequest from its required fields.
Sourcepub fn with_report_data(self, value: Vec<ReportData>) -> Self
pub fn with_report_data(self, value: Vec<ReportData>) -> Self
Sets the optional reportData 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 NotifyReportRequest
impl Clone for NotifyReportRequest
impl Confirmed for NotifyReportRequest
Source§impl Debug for NotifyReportRequest
impl Debug for NotifyReportRequest
Source§impl<'de> Deserialize<'de> for NotifyReportRequest
impl<'de> Deserialize<'de> for NotifyReportRequest
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 NotifyReportRequest
impl PartialEq for NotifyReportRequest
Source§impl Request for NotifyReportRequest
impl Request for NotifyReportRequest
Source§const KIND: MessageKind = MessageKind::Call
const KIND: MessageKind = MessageKind::Call
CALL or SEND.Source§type Response = NotifyReportResponse
type Response = NotifyReportResponse
The matching response payload, or
NoResponse for a SEND.impl Sealed for NotifyReportRequest
Source§impl Serialize for NotifyReportRequest
impl Serialize for NotifyReportRequest
impl StructuralPartialEq for NotifyReportRequest
Source§impl Validate for NotifyReportRequest
impl Validate for NotifyReportRequest
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 NotifyReportRequest
impl Freeze for NotifyReportRequest
impl Move for NotifyReportRequest
impl RefUnwindSafe for NotifyReportRequest
impl Send for NotifyReportRequest
impl Sync for NotifyReportRequest
impl Unpin for NotifyReportRequest
impl UnsafeUnpin for NotifyReportRequest
impl UnwindSafe for NotifyReportRequest
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