pub struct LogParameters {
pub remote_location: String,
pub oldest_timestamp: Option<DateTime>,
pub latest_timestamp: Option<DateTime>,
pub custom_data: Option<CustomData>,
}Expand description
Log urn:x-enexis:ecdm:uid:2:233373 Generic class for the configuration of logging entries.
The OCPP 2.0.1 LogParameters data type.
Fields§
§remote_location: StringLog. Remote_ Location. URI urn:x-enexis:ecdm:uid:1:569484 The URL of the location at the remote system where the log should be stored.
oldest_timestamp: Option<DateTime>Log. Oldest_ Timestamp. Date_ Time urn:x-enexis:ecdm:uid:1:569477 This contains the date and time of the oldest logging information to include in the diagnostics.
latest_timestamp: Option<DateTime>Log. Latest_ Timestamp. Date_ Time urn:x-enexis:ecdm:uid:1:569482 This contains the date and time of the latest logging information to include in the diagnostics.
custom_data: Option<CustomData>The customData member.
Implementations§
Source§impl LogParameters
impl LogParameters
Sourcepub fn new(remote_location: impl Into<String>) -> Self
pub fn new(remote_location: impl Into<String>) -> Self
Creates a LogParameters from its required fields.
Sourcepub fn with_oldest_timestamp(self, value: impl Into<DateTime>) -> Self
pub fn with_oldest_timestamp(self, value: impl Into<DateTime>) -> Self
Sets the optional oldestTimestamp field.
Sourcepub fn with_latest_timestamp(self, value: impl Into<DateTime>) -> Self
pub fn with_latest_timestamp(self, value: impl Into<DateTime>) -> Self
Sets the optional latestTimestamp 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 LogParameters
impl Clone for LogParameters
Source§impl Debug for LogParameters
impl Debug for LogParameters
Source§impl<'de> Deserialize<'de> for LogParameters
impl<'de> Deserialize<'de> for LogParameters
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>,
Source§impl PartialEq for LogParameters
impl PartialEq for LogParameters
Source§impl Serialize for LogParameters
impl Serialize for LogParameters
impl StructuralPartialEq for LogParameters
Source§impl Validate for LogParameters
impl Validate for LogParameters
Source§fn validate_at(&self, path: &mut ValidationPath, out: &mut Violations)
fn validate_at(&self, path: &mut ValidationPath, out: &mut Violations)
out, relative to path.