pub struct GetDisplayMessagesRequest {
pub request_id: i32,
pub id: Option<Vec<i32>>,
pub priority: Option<MessagePriority>,
pub state: Option<MessageState>,
pub custom_data: Option<CustomData>,
}Expand description
Spec: OCPP 2.1 · O — Display Message · CSMS → Charging Station · CALL.
Fields§
§request_id: i32The Id of this request.
id: Option<Vec<i32>>If provided the Charging Station shall return Display Messages of the given ids. This field SHALL NOT contain more ids than set in <<configkey-number-of-display-messages,NumberOfDisplayMessages.maxLimit>>
priority: Option<MessagePriority>The priority member.
state: Option<MessageState>The state member.
custom_data: Option<CustomData>The customData member.
Implementations§
Source§impl GetDisplayMessagesRequest
impl GetDisplayMessagesRequest
Sourcepub fn new(request_id: i32) -> Self
pub fn new(request_id: i32) -> Self
Creates a GetDisplayMessagesRequest from its required fields.
Sourcepub fn with_priority(self, value: MessagePriority) -> Self
pub fn with_priority(self, value: MessagePriority) -> Self
Sets the optional priority field.
Sourcepub fn with_state(self, value: MessageState) -> Self
pub fn with_state(self, value: MessageState) -> Self
Sets the optional state 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 GetDisplayMessagesRequest
impl Clone for GetDisplayMessagesRequest
impl Confirmed for GetDisplayMessagesRequest
Source§impl Debug for GetDisplayMessagesRequest
impl Debug for GetDisplayMessagesRequest
Source§impl<'de> Deserialize<'de> for GetDisplayMessagesRequest
impl<'de> Deserialize<'de> for GetDisplayMessagesRequest
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 GetDisplayMessagesRequest
impl Request for GetDisplayMessagesRequest
Source§const KIND: MessageKind = MessageKind::Call
const KIND: MessageKind = MessageKind::Call
CALL or SEND.Source§type Response = GetDisplayMessagesResponse
type Response = GetDisplayMessagesResponse
The matching response payload, or
NoResponse for a SEND.impl Sealed for GetDisplayMessagesRequest
impl StructuralPartialEq for GetDisplayMessagesRequest
Source§impl Validate for GetDisplayMessagesRequest
impl Validate for GetDisplayMessagesRequest
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 GetDisplayMessagesRequest
impl Freeze for GetDisplayMessagesRequest
impl RefUnwindSafe for GetDisplayMessagesRequest
impl Send for GetDisplayMessagesRequest
impl Sync for GetDisplayMessagesRequest
impl Unpin for GetDisplayMessagesRequest
impl UnsafeUnpin for GetDisplayMessagesRequest
impl UnwindSafe for GetDisplayMessagesRequest
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