pub struct GetLogRequest {
pub log: LogParameters,
pub log_type: Log,
pub request_id: i32,
pub retries: Option<i32>,
pub retry_interval: Option<i32>,
pub custom_data: Option<CustomData>,
}Expand description
Spec: OCPP 2.1 · N — Diagnostics · CSMS → Charging Station · CALL.
Fields§
§log: LogParametersThe log member.
log_type: LogThe logType member.
request_id: i32The Id of this request
retries: Option<i32>This specifies how many times the Charging Station must retry to upload the log before giving up. If this field is not present, it is left to Charging Station to decide how many times it wants to retry. If the value is 0, it means: no retries.
retry_interval: Option<i32>The interval in seconds after which a retry may be attempted. If this field is not present, it is left to Charging Station to decide how long to wait between attempts.
custom_data: Option<CustomData>The customData member.
Implementations§
Source§impl GetLogRequest
impl GetLogRequest
Sourcepub fn new(log: LogParameters, log_type: Log, request_id: i32) -> Self
pub fn new(log: LogParameters, log_type: Log, request_id: i32) -> Self
Creates a GetLogRequest from its required fields.
Sourcepub fn with_retries(self, value: i32) -> Self
pub fn with_retries(self, value: i32) -> Self
Sets the optional retries field.
Sourcepub fn with_retry_interval(self, value: i32) -> Self
pub fn with_retry_interval(self, value: i32) -> Self
Sets the optional retryInterval 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 GetLogRequest
impl Clone for GetLogRequest
impl Confirmed for GetLogRequest
Source§impl Debug for GetLogRequest
impl Debug for GetLogRequest
Source§impl<'de> Deserialize<'de> for GetLogRequest
impl<'de> Deserialize<'de> for GetLogRequest
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 GetLogRequest
impl PartialEq for GetLogRequest
Source§impl Request for GetLogRequest
impl Request for GetLogRequest
Source§const KIND: MessageKind = MessageKind::Call
const KIND: MessageKind = MessageKind::Call
CALL or SEND.Source§type Response = GetLogResponse
type Response = GetLogResponse
The matching response payload, or
NoResponse for a SEND.impl Sealed for GetLogRequest
Source§impl Serialize for GetLogRequest
impl Serialize for GetLogRequest
impl StructuralPartialEq for GetLogRequest
Source§impl Validate for GetLogRequest
impl Validate for GetLogRequest
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 GetLogRequest
impl Freeze for GetLogRequest
impl Move for GetLogRequest
impl RefUnwindSafe for GetLogRequest
impl Send for GetLogRequest
impl Sync for GetLogRequest
impl Unpin for GetLogRequest
impl UnsafeUnpin for GetLogRequest
impl UnwindSafe for GetLogRequest
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