pub struct LogParameters {
pub remote_location: String,
pub oldest_timestamp: Option<DateTime>,
pub latest_timestamp: Option<DateTime>,
pub custom_data: Option<CustomData>,
}Expand description
Generic class for the configuration of logging entries.
The OCPP 2.1 LogParameters data type.
Fields§
§remote_location: StringThe URL of the location at the remote system where the log should be stored.
oldest_timestamp: Option<DateTime>This contains the date and time of the oldest logging information to include in the diagnostics.
latest_timestamp: Option<DateTime>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>,
Deserialize this value from the given Serde deserializer. Read more
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)
Appends this value’s violations to
out, relative to path.Auto Trait Implementations§
impl Forget for LogParameters
impl Freeze for LogParameters
impl RefUnwindSafe for LogParameters
impl Send for LogParameters
impl Sync for LogParameters
impl Unpin for LogParameters
impl UnsafeUnpin for LogParameters
impl UnwindSafe for LogParameters
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