pub struct ViolationEvent {
pub behavior: Option<Behavior>,
pub metric_value: Option<MetricValue>,
pub security_profile_name: Option<String>,
pub thing_name: Option<String>,
pub violation_event_additional_info: Option<ViolationEventAdditionalInfo>,
pub violation_event_time: Option<f64>,
pub violation_event_type: Option<String>,
pub violation_id: Option<String>,
}
Expand description
Information about a Device Defender security profile behavior violation.
Fields§
§behavior: Option<Behavior>
The behavior that was violated.
metric_value: Option<MetricValue>
The value of the metric (the measurement).
security_profile_name: Option<String>
The name of the security profile whose behavior was violated.
thing_name: Option<String>
The name of the thing responsible for the violation event.
violation_event_additional_info: Option<ViolationEventAdditionalInfo>
The details of a violation event.
violation_event_time: Option<f64>
The time the violation event occurred.
violation_event_type: Option<String>
The type of violation event.
violation_id: Option<String>
The ID of the violation event.
Trait Implementations§
Source§impl Clone for ViolationEvent
impl Clone for ViolationEvent
Source§fn clone(&self) -> ViolationEvent
fn clone(&self) -> ViolationEvent
Returns a duplicate of the value. Read more
1.0.0 · 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 ViolationEvent
impl Debug for ViolationEvent
Source§impl Default for ViolationEvent
impl Default for ViolationEvent
Source§fn default() -> ViolationEvent
fn default() -> ViolationEvent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ViolationEvent
impl<'de> Deserialize<'de> for ViolationEvent
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 ViolationEvent
impl PartialEq for ViolationEvent
impl StructuralPartialEq for ViolationEvent
Auto Trait Implementations§
impl Freeze for ViolationEvent
impl RefUnwindSafe for ViolationEvent
impl Send for ViolationEvent
impl Sync for ViolationEvent
impl Unpin for ViolationEvent
impl UnwindSafe for ViolationEvent
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