pub struct SecurityEventNotificationRequest {
pub type: String,
pub timestamp: DateTime,
pub tech_info: Option<String>,
pub custom_data: Option<CustomData>,
}Expand description
Spec: OCPP 2.1 · A — Security · Charging Station → CSMS · CALL.
Fields§
§type: StringType of the security event. This value should be taken from the Security events list.
timestamp: DateTimeDate and time at which the event occurred.
tech_info: Option<String>Additional information about the occurred security event.
custom_data: Option<CustomData>The customData member.
Implementations§
Source§impl SecurityEventNotificationRequest
impl SecurityEventNotificationRequest
Sourcepub fn new(type: impl Into<String>, timestamp: impl Into<DateTime>) -> Self
pub fn new(type: impl Into<String>, timestamp: impl Into<DateTime>) -> Self
Creates a SecurityEventNotificationRequest from its required fields.
Sourcepub fn with_tech_info(self, value: impl Into<String>) -> Self
pub fn with_tech_info(self, value: impl Into<String>) -> Self
Sets the optional techInfo 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§
impl Confirmed for SecurityEventNotificationRequest
Source§impl<'de> Deserialize<'de> for SecurityEventNotificationRequest
impl<'de> Deserialize<'de> for SecurityEventNotificationRequest
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 Request for SecurityEventNotificationRequest
impl Request for SecurityEventNotificationRequest
Source§const KIND: MessageKind = MessageKind::Call
const KIND: MessageKind = MessageKind::Call
CALL or SEND.Source§type Response = SecurityEventNotificationResponse
type Response = SecurityEventNotificationResponse
The matching response payload, or
NoResponse for a SEND.impl Sealed for SecurityEventNotificationRequest
impl StructuralPartialEq for SecurityEventNotificationRequest
Source§impl Validate for SecurityEventNotificationRequest
impl Validate for SecurityEventNotificationRequest
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 SecurityEventNotificationRequest
impl Freeze for SecurityEventNotificationRequest
impl RefUnwindSafe for SecurityEventNotificationRequest
impl Send for SecurityEventNotificationRequest
impl Sync for SecurityEventNotificationRequest
impl Unpin for SecurityEventNotificationRequest
impl UnsafeUnpin for SecurityEventNotificationRequest
impl UnwindSafe for SecurityEventNotificationRequest
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