pub struct GetReportResponse {
pub status: GenericDeviceModelStatus,
pub status_info: Option<StatusInfo>,
pub custom_data: Option<CustomData>,
}Expand description
Spec: OCPP 2.1 · B — Provisioning · CSMS → Charging Station · CALL.
Fields§
§status: GenericDeviceModelStatusThe status member.
status_info: Option<StatusInfo>The statusInfo member.
custom_data: Option<CustomData>The customData member.
Implementations§
Source§impl GetReportResponse
impl GetReportResponse
Sourcepub fn new(status: GenericDeviceModelStatus) -> Self
pub fn new(status: GenericDeviceModelStatus) -> Self
Creates a GetReportResponse from its required fields.
Sourcepub fn with_status_info(self, value: StatusInfo) -> Self
pub fn with_status_info(self, value: StatusInfo) -> Self
Sets the optional statusInfo 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 GetReportResponse
impl Clone for GetReportResponse
Source§impl Debug for GetReportResponse
impl Debug for GetReportResponse
Source§impl<'de> Deserialize<'de> for GetReportResponse
impl<'de> Deserialize<'de> for GetReportResponse
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 GetReportResponse
impl PartialEq for GetReportResponse
impl Response for GetReportResponse
impl Sealed for GetReportResponse
Source§impl Serialize for GetReportResponse
impl Serialize for GetReportResponse
impl StructuralPartialEq for GetReportResponse
Source§impl Validate for GetReportResponse
impl Validate for GetReportResponse
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 GetReportResponse
impl Freeze for GetReportResponse
impl Move for GetReportResponse
impl RefUnwindSafe for GetReportResponse
impl Send for GetReportResponse
impl Sync for GetReportResponse
impl Unpin for GetReportResponse
impl UnsafeUnpin for GetReportResponse
impl UnwindSafe for GetReportResponse
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