Struct aws_sdk_inspector::model::Finding
source · [−]#[non_exhaustive]pub struct Finding {Show 18 fields
pub arn: Option<String>,
pub schema_version: i32,
pub service: Option<String>,
pub service_attributes: Option<InspectorServiceAttributes>,
pub asset_type: Option<AssetType>,
pub asset_attributes: Option<AssetAttributes>,
pub id: Option<String>,
pub title: Option<String>,
pub description: Option<String>,
pub recommendation: Option<String>,
pub severity: Option<Severity>,
pub numeric_severity: f64,
pub confidence: i32,
pub indicator_of_compromise: Option<bool>,
pub attributes: Option<Vec<Attribute>>,
pub user_attributes: Option<Vec<Attribute>>,
pub created_at: Option<DateTime>,
pub updated_at: Option<DateTime>,
}Expand description
Contains information about an Amazon Inspector finding. This data type is used as the response element in the DescribeFindings action.
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.arn: Option<String>The ARN that specifies the finding.
schema_version: i32The schema version of this data type.
service: Option<String>The data element is set to "Inspector".
service_attributes: Option<InspectorServiceAttributes>This data type is used in the Finding data type.
asset_type: Option<AssetType>The type of the host from which the finding is generated.
asset_attributes: Option<AssetAttributes>A collection of attributes of the host from which the finding is generated.
id: Option<String>The ID of the finding.
title: Option<String>The name of the finding.
description: Option<String>The description of the finding.
recommendation: Option<String>The recommendation for the finding.
severity: Option<Severity>The finding severity. Values can be set to High, Medium, Low, and Informational.
numeric_severity: f64The numeric value of the finding severity.
confidence: i32This data element is currently not used.
indicator_of_compromise: Option<bool>This data element is currently not used.
attributes: Option<Vec<Attribute>>The system-defined attributes for the finding.
user_attributes: Option<Vec<Attribute>>The user-defined attributes that are assigned to the finding.
created_at: Option<DateTime>The time when the finding was generated.
updated_at: Option<DateTime>The time when AddAttributesToFindings is called.
Implementations
sourceimpl Finding
impl Finding
sourcepub fn schema_version(&self) -> i32
pub fn schema_version(&self) -> i32
The schema version of this data type.
sourcepub fn service_attributes(&self) -> Option<&InspectorServiceAttributes>
pub fn service_attributes(&self) -> Option<&InspectorServiceAttributes>
This data type is used in the Finding data type.
sourcepub fn asset_type(&self) -> Option<&AssetType>
pub fn asset_type(&self) -> Option<&AssetType>
The type of the host from which the finding is generated.
sourcepub fn asset_attributes(&self) -> Option<&AssetAttributes>
pub fn asset_attributes(&self) -> Option<&AssetAttributes>
A collection of attributes of the host from which the finding is generated.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description of the finding.
sourcepub fn recommendation(&self) -> Option<&str>
pub fn recommendation(&self) -> Option<&str>
The recommendation for the finding.
sourcepub fn severity(&self) -> Option<&Severity>
pub fn severity(&self) -> Option<&Severity>
The finding severity. Values can be set to High, Medium, Low, and Informational.
sourcepub fn numeric_severity(&self) -> f64
pub fn numeric_severity(&self) -> f64
The numeric value of the finding severity.
sourcepub fn confidence(&self) -> i32
pub fn confidence(&self) -> i32
This data element is currently not used.
sourcepub fn indicator_of_compromise(&self) -> Option<bool>
pub fn indicator_of_compromise(&self) -> Option<bool>
This data element is currently not used.
sourcepub fn attributes(&self) -> Option<&[Attribute]>
pub fn attributes(&self) -> Option<&[Attribute]>
The system-defined attributes for the finding.
sourcepub fn user_attributes(&self) -> Option<&[Attribute]>
pub fn user_attributes(&self) -> Option<&[Attribute]>
The user-defined attributes that are assigned to the finding.
sourcepub fn created_at(&self) -> Option<&DateTime>
pub fn created_at(&self) -> Option<&DateTime>
The time when the finding was generated.
sourcepub fn updated_at(&self) -> Option<&DateTime>
pub fn updated_at(&self) -> Option<&DateTime>
The time when AddAttributesToFindings is called.
Trait Implementations
impl StructuralPartialEq for Finding
Auto Trait Implementations
impl RefUnwindSafe for Finding
impl Send for Finding
impl Sync for Finding
impl Unpin for Finding
impl UnwindSafe for Finding
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more