pub struct LogStatusNotificationRequest {
pub status: UploadLogStatus,
pub request_id: Option<i32>,
pub status_info: Option<StatusInfo>,
pub custom_data: Option<CustomData>,
}Expand description
Spec: OCPP 2.1 · N — Diagnostics · Charging Station → CSMS · CALL.
Fields§
§status: UploadLogStatusThe status member.
request_id: Option<i32>The request id that was provided in GetLogRequest that started this log upload. This field is mandatory, unless the message was triggered by a TriggerMessageRequest AND there is no log upload ongoing.
status_info: Option<StatusInfo>The statusInfo member.
custom_data: Option<CustomData>The customData member.
Implementations§
Source§impl LogStatusNotificationRequest
impl LogStatusNotificationRequest
Sourcepub fn new(status: UploadLogStatus) -> Self
pub fn new(status: UploadLogStatus) -> Self
Creates a LogStatusNotificationRequest from its required fields.
Sourcepub fn with_request_id(self, value: i32) -> Self
pub fn with_request_id(self, value: i32) -> Self
Sets the optional requestId field.
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 LogStatusNotificationRequest
impl Clone for LogStatusNotificationRequest
impl Confirmed for LogStatusNotificationRequest
Source§impl Debug for LogStatusNotificationRequest
impl Debug for LogStatusNotificationRequest
Source§impl<'de> Deserialize<'de> for LogStatusNotificationRequest
impl<'de> Deserialize<'de> for LogStatusNotificationRequest
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 LogStatusNotificationRequest
impl Request for LogStatusNotificationRequest
Source§const KIND: MessageKind = MessageKind::Call
const KIND: MessageKind = MessageKind::Call
CALL or SEND.Source§type Response = LogStatusNotificationResponse
type Response = LogStatusNotificationResponse
The matching response payload, or
NoResponse for a SEND.impl Sealed for LogStatusNotificationRequest
impl StructuralPartialEq for LogStatusNotificationRequest
Source§impl Validate for LogStatusNotificationRequest
impl Validate for LogStatusNotificationRequest
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 LogStatusNotificationRequest
impl Freeze for LogStatusNotificationRequest
impl RefUnwindSafe for LogStatusNotificationRequest
impl Send for LogStatusNotificationRequest
impl Sync for LogStatusNotificationRequest
impl Unpin for LogStatusNotificationRequest
impl UnsafeUnpin for LogStatusNotificationRequest
impl UnwindSafe for LogStatusNotificationRequest
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