pub struct GetLogResponse {
pub status: LogStatus,
pub status_info: Option<StatusInfo>,
pub filename: Option<String>,
pub custom_data: Option<CustomData>,
}Expand description
Spec: OCPP 2.1 · N — Diagnostics · CSMS → Charging Station · CALL.
Fields§
§status: LogStatusThe status member.
status_info: Option<StatusInfo>The statusInfo member.
filename: Option<String>This contains the name of the log file that will be uploaded. This field is not present when no logging information is available.
custom_data: Option<CustomData>The customData member.
Implementations§
Source§impl GetLogResponse
impl GetLogResponse
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_filename(self, value: impl Into<String>) -> Self
pub fn with_filename(self, value: impl Into<String>) -> Self
Sets the optional filename 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 GetLogResponse
impl Clone for GetLogResponse
Source§fn clone(&self) -> GetLogResponse
fn clone(&self) -> GetLogResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GetLogResponse
impl Debug for GetLogResponse
Source§impl<'de> Deserialize<'de> for GetLogResponse
impl<'de> Deserialize<'de> for GetLogResponse
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 GetLogResponse
impl PartialEq for GetLogResponse
impl Response for GetLogResponse
impl Sealed for GetLogResponse
Source§impl Serialize for GetLogResponse
impl Serialize for GetLogResponse
impl StructuralPartialEq for GetLogResponse
Source§impl Validate for GetLogResponse
impl Validate for GetLogResponse
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 Freeze for GetLogResponse
impl RefUnwindSafe for GetLogResponse
impl Send for GetLogResponse
impl Sync for GetLogResponse
impl Unpin for GetLogResponse
impl UnsafeUnpin for GetLogResponse
impl UnwindSafe for GetLogResponse
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