pub struct LogParameters {
pub remote_location: String,
pub oldest_timestamp: Option<DateTime>,
pub latest_timestamp: Option<DateTime>,
}Expand description
The OCPP 1.6 LogParameters data type.
Fields§
§remote_location: StringThe remoteLocation member.
oldest_timestamp: Option<DateTime>The oldestTimestamp member.
latest_timestamp: Option<DateTime>The latestTimestamp 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.
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 Move 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