pub struct GetDisplayMessagesResponse {
pub status: GetDisplayMessagesStatus,
pub status_info: Option<StatusInfo>,
pub custom_data: Option<CustomData>,
}Expand description
Spec: OCPP 2.1 · O — Display Message · CSMS → Charging Station · CALL.
Fields§
§status: GetDisplayMessagesStatusThe status member.
status_info: Option<StatusInfo>The statusInfo member.
custom_data: Option<CustomData>The customData member.
Implementations§
Source§impl GetDisplayMessagesResponse
impl GetDisplayMessagesResponse
Sourcepub fn new(status: GetDisplayMessagesStatus) -> Self
pub fn new(status: GetDisplayMessagesStatus) -> Self
Creates a GetDisplayMessagesResponse 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 GetDisplayMessagesResponse
impl Clone for GetDisplayMessagesResponse
Source§impl Debug for GetDisplayMessagesResponse
impl Debug for GetDisplayMessagesResponse
Source§impl<'de> Deserialize<'de> for GetDisplayMessagesResponse
impl<'de> Deserialize<'de> for GetDisplayMessagesResponse
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
impl Response for GetDisplayMessagesResponse
impl Sealed for GetDisplayMessagesResponse
impl StructuralPartialEq for GetDisplayMessagesResponse
Source§impl Validate for GetDisplayMessagesResponse
impl Validate for GetDisplayMessagesResponse
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 GetDisplayMessagesResponse
impl Freeze for GetDisplayMessagesResponse
impl Move for GetDisplayMessagesResponse
impl RefUnwindSafe for GetDisplayMessagesResponse
impl Send for GetDisplayMessagesResponse
impl Sync for GetDisplayMessagesResponse
impl Unpin for GetDisplayMessagesResponse
impl UnsafeUnpin for GetDisplayMessagesResponse
impl UnwindSafe for GetDisplayMessagesResponse
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