#[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 ==
.impl StructuralPartialEq for DetectMitigationActionExecution
Auto Trait Implementations§
impl Freeze for DetectMitigationActionExecution
impl RefUnwindSafe for DetectMitigationActionExecution
impl Send for DetectMitigationActionExecution
impl Sync for DetectMitigationActionExecution
impl Unpin for DetectMitigationActionExecution
impl UnwindSafe for DetectMitigationActionExecution
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more