pub struct GetLogRequest {
pub log: LogParameters,
pub log_type: LogType,
pub request_id: i32,
pub retries: Option<i32>,
pub retry_interval: Option<i32>,
}Expand description
Spec: OCPP 1.6 · Security (Whitepaper ed. 2) · CSMS → Charging Station · CALL.
Fields§
§log: LogParametersThe log member.
log_type: LogTypeThe logType member.
request_id: i32The requestId member.
retries: Option<i32>The retries member.
retry_interval: Option<i32>The retryInterval member.
Implementations§
Source§impl GetLogRequest
impl GetLogRequest
Sourcepub fn new(log: LogParameters, log_type: LogType, request_id: i32) -> Self
pub fn new(log: LogParameters, log_type: LogType, 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.
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