pub struct GetReportRequest {
pub request_id: i32,
pub component_variable: Option<Vec<ComponentVariable>>,
pub component_criteria: Option<Vec<ComponentCriterion>>,
pub custom_data: Option<CustomData>,
}Expand description
Spec: OCPP 2.1 · B — Provisioning · CSMS → Charging Station · CALL.
Fields§
§request_id: i32The Id of the request.
component_variable: Option<Vec<ComponentVariable>>The componentVariable member.
component_criteria: Option<Vec<ComponentCriterion>>This field contains criteria for components for which a report is requested
custom_data: Option<CustomData>The customData member.
Implementations§
Source§impl GetReportRequest
impl GetReportRequest
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_component_criteria(self, value: Vec<ComponentCriterion>) -> Self
pub fn with_component_criteria(self, value: Vec<ComponentCriterion>) -> Self
Sets the optional componentCriteria 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 GetReportRequest
impl Clone for GetReportRequest
impl Confirmed for GetReportRequest
Source§impl Debug for GetReportRequest
impl Debug for GetReportRequest
Source§impl<'de> Deserialize<'de> for GetReportRequest
impl<'de> Deserialize<'de> for GetReportRequest
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 GetReportRequest
impl PartialEq for GetReportRequest
Source§impl Request for GetReportRequest
impl Request for GetReportRequest
Source§const KIND: MessageKind = MessageKind::Call
const KIND: MessageKind = MessageKind::Call
CALL or SEND.Source§type Response = GetReportResponse
type Response = GetReportResponse
The matching response payload, or
NoResponse for a SEND.impl Sealed for GetReportRequest
Source§impl Serialize for GetReportRequest
impl Serialize for GetReportRequest
impl StructuralPartialEq for GetReportRequest
Source§impl Validate for GetReportRequest
impl Validate for GetReportRequest
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 GetReportRequest
impl Freeze for GetReportRequest
impl Move for GetReportRequest
impl RefUnwindSafe for GetReportRequest
impl Send for GetReportRequest
impl Sync for GetReportRequest
impl Unpin for GetReportRequest
impl UnsafeUnpin for GetReportRequest
impl UnwindSafe for GetReportRequest
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