pub struct GetMonitoringReportRequest {
pub request_id: i32,
pub component_variable: Option<Vec<ComponentVariable>>,
pub monitoring_criteria: Option<Vec<MonitoringCriterion>>,
pub custom_data: Option<CustomData>,
}Expand description
Spec: OCPP 2.1 · N — Diagnostics · CSMS → Charging Station · CALL.
Fields§
§request_id: i32The Id of the request.
component_variable: Option<Vec<ComponentVariable>>The componentVariable member.
monitoring_criteria: Option<Vec<MonitoringCriterion>>This field contains criteria for components for which a monitoring report is requested
custom_data: Option<CustomData>The customData member.
Implementations§
Source§impl GetMonitoringReportRequest
impl GetMonitoringReportRequest
Sourcepub fn new(request_id: i32) -> Self
pub fn new(request_id: i32) -> Self
Creates a GetMonitoringReportRequest from its required fields.
Sourcepub fn with_component_variable(self, value: Vec<ComponentVariable>) -> Self
pub fn with_component_variable(self, value: Vec<ComponentVariable>) -> Self
Sets the optional componentVariable field.
Sourcepub fn with_monitoring_criteria(self, value: Vec<MonitoringCriterion>) -> Self
pub fn with_monitoring_criteria(self, value: Vec<MonitoringCriterion>) -> Self
Sets the optional monitoringCriteria 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 GetMonitoringReportRequest
impl Clone for GetMonitoringReportRequest
Source§fn clone(&self) -> GetMonitoringReportRequest
fn clone(&self) -> GetMonitoringReportRequest
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 GetMonitoringReportRequest
Source§impl Debug for GetMonitoringReportRequest
impl Debug for GetMonitoringReportRequest
Source§impl<'de> Deserialize<'de> for GetMonitoringReportRequest
impl<'de> Deserialize<'de> for GetMonitoringReportRequest
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 GetMonitoringReportRequest
impl Request for GetMonitoringReportRequest
Source§const KIND: MessageKind = MessageKind::Call
const KIND: MessageKind = MessageKind::Call
CALL or SEND.Source§type Response = GetMonitoringReportResponse
type Response = GetMonitoringReportResponse
The matching response payload, or
NoResponse for a SEND.impl Sealed for GetMonitoringReportRequest
impl StructuralPartialEq for GetMonitoringReportRequest
Source§impl Validate for GetMonitoringReportRequest
impl Validate for GetMonitoringReportRequest
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 GetMonitoringReportRequest
impl RefUnwindSafe for GetMonitoringReportRequest
impl Send for GetMonitoringReportRequest
impl Sync for GetMonitoringReportRequest
impl Unpin for GetMonitoringReportRequest
impl UnsafeUnpin for GetMonitoringReportRequest
impl UnwindSafe for GetMonitoringReportRequest
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