#[non_exhaustive]pub struct DetectMitigationActionExecution {
pub task_id: Option<String>,
pub violation_id: Option<String>,
pub action_name: Option<String>,
pub thing_name: Option<String>,
pub execution_start_date: Option<DateTime>,
pub execution_end_date: Option<DateTime>,
pub status: Option<DetectMitigationActionExecutionStatus>,
pub error_code: Option<String>,
pub message: Option<String>,
}
Expand description
Describes which mitigation actions should be executed.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.task_id: Option<String>
The unique identifier of the task.
violation_id: Option<String>
The unique identifier of the violation.
action_name: Option<String>
The friendly name that uniquely identifies the mitigation action.
thing_name: Option<String>
The name of the thing.
execution_start_date: Option<DateTime>
The date a mitigation action was started.
execution_end_date: Option<DateTime>
The date a mitigation action ended.
status: Option<DetectMitigationActionExecutionStatus>
The status of a mitigation action.
error_code: Option<String>
The error code of a mitigation action.
message: Option<String>
The message of a mitigation action.
Implementations§
source§impl DetectMitigationActionExecution
impl DetectMitigationActionExecution
sourcepub fn violation_id(&self) -> Option<&str>
pub fn violation_id(&self) -> Option<&str>
The unique identifier of the violation.
sourcepub fn action_name(&self) -> Option<&str>
pub fn action_name(&self) -> Option<&str>
The friendly name that uniquely identifies the mitigation action.
sourcepub fn thing_name(&self) -> Option<&str>
pub fn thing_name(&self) -> Option<&str>
The name of the thing.
sourcepub fn execution_start_date(&self) -> Option<&DateTime>
pub fn execution_start_date(&self) -> Option<&DateTime>
The date a mitigation action was started.
sourcepub fn execution_end_date(&self) -> Option<&DateTime>
pub fn execution_end_date(&self) -> Option<&DateTime>
The date a mitigation action ended.
sourcepub fn status(&self) -> Option<&DetectMitigationActionExecutionStatus>
pub fn status(&self) -> Option<&DetectMitigationActionExecutionStatus>
The status of a mitigation action.
sourcepub fn error_code(&self) -> Option<&str>
pub fn error_code(&self) -> Option<&str>
The error code of a mitigation action.
source§impl DetectMitigationActionExecution
impl DetectMitigationActionExecution
sourcepub fn builder() -> DetectMitigationActionExecutionBuilder
pub fn builder() -> DetectMitigationActionExecutionBuilder
Creates a new builder-style object to manufacture DetectMitigationActionExecution
.
Trait Implementations§
source§impl Clone for DetectMitigationActionExecution
impl Clone for DetectMitigationActionExecution
source§fn clone(&self) -> DetectMitigationActionExecution
fn clone(&self) -> DetectMitigationActionExecution
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for DetectMitigationActionExecution
impl PartialEq for DetectMitigationActionExecution
source§fn eq(&self, other: &DetectMitigationActionExecution) -> bool
fn eq(&self, other: &DetectMitigationActionExecution) -> bool
self
and other
values to be equal, and is used
by ==
.