#[non_exhaustive]
pub struct Finding {
Show 18 fields pub account_id: Option<String>, pub archived: Option<bool>, pub category: Option<FindingCategory>, pub classification_details: Option<ClassificationDetails>, pub count: Option<i64>, pub created_at: Option<DateTime>, pub description: Option<String>, pub id: Option<String>, pub partition: Option<String>, pub policy_details: Option<PolicyDetails>, pub region: Option<String>, pub resources_affected: Option<ResourcesAffected>, pub sample: Option<bool>, pub schema_version: Option<String>, pub severity: Option<Severity>, pub title: Option<String>, pub type: Option<FindingType>, pub updated_at: Option<DateTime>,
}
Expand description

Provides the details of a finding.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§account_id: Option<String>

The unique identifier for the Amazon Web Services account that the finding applies to. This is typically the account that owns the affected resource.

§archived: Option<bool>

Specifies whether the finding is archived (suppressed).

§category: Option<FindingCategory>

The category of the finding. Possible values are: CLASSIFICATION, for a sensitive data finding; and, POLICY, for a policy finding.

§classification_details: Option<ClassificationDetails>

The details of a sensitive data finding. This value is null for a policy finding.

§count: Option<i64>

The total number of occurrences of the finding. For sensitive data findings, this value is always 1. All sensitive data findings are considered unique.

§created_at: Option<DateTime>

The date and time, in UTC and extended ISO 8601 format, when Amazon Macie created the finding.

§description: Option<String>

The description of the finding.

§id: Option<String>

The unique identifier for the finding. This is a random string that Amazon Macie generates and assigns to a finding when it creates the finding.

§partition: Option<String>

The Amazon Web Services partition that Amazon Macie created the finding in.

§policy_details: Option<PolicyDetails>

The details of a policy finding. This value is null for a sensitive data finding.

§region: Option<String>

The Amazon Web Services Region that Amazon Macie created the finding in.

§resources_affected: Option<ResourcesAffected>

The resources that the finding applies to.

§sample: Option<bool>

Specifies whether the finding is a sample finding. A sample finding is a finding that uses example data to demonstrate what a finding might contain.

§schema_version: Option<String>

The version of the schema that was used to define the data structures in the finding.

§severity: Option<Severity>

The severity level and score for the finding.

§title: Option<String>

The brief description of the finding.

§type: Option<FindingType>

The type of the finding.

§updated_at: Option<DateTime>

The date and time, in UTC and extended ISO 8601 format, when Amazon Macie last updated the finding. For sensitive data findings, this value is the same as the value for the createdAt property. All sensitive data findings are considered new.

Implementations§

source§

impl Finding

source

pub fn account_id(&self) -> Option<&str>

The unique identifier for the Amazon Web Services account that the finding applies to. This is typically the account that owns the affected resource.

source

pub fn archived(&self) -> Option<bool>

Specifies whether the finding is archived (suppressed).

source

pub fn category(&self) -> Option<&FindingCategory>

The category of the finding. Possible values are: CLASSIFICATION, for a sensitive data finding; and, POLICY, for a policy finding.

source

pub fn classification_details(&self) -> Option<&ClassificationDetails>

The details of a sensitive data finding. This value is null for a policy finding.

source

pub fn count(&self) -> Option<i64>

The total number of occurrences of the finding. For sensitive data findings, this value is always 1. All sensitive data findings are considered unique.

source

pub fn created_at(&self) -> Option<&DateTime>

The date and time, in UTC and extended ISO 8601 format, when Amazon Macie created the finding.

source

pub fn description(&self) -> Option<&str>

The description of the finding.

source

pub fn id(&self) -> Option<&str>

The unique identifier for the finding. This is a random string that Amazon Macie generates and assigns to a finding when it creates the finding.

source

pub fn partition(&self) -> Option<&str>

The Amazon Web Services partition that Amazon Macie created the finding in.

source

pub fn policy_details(&self) -> Option<&PolicyDetails>

The details of a policy finding. This value is null for a sensitive data finding.

source

pub fn region(&self) -> Option<&str>

The Amazon Web Services Region that Amazon Macie created the finding in.

source

pub fn resources_affected(&self) -> Option<&ResourcesAffected>

The resources that the finding applies to.

source

pub fn sample(&self) -> Option<bool>

Specifies whether the finding is a sample finding. A sample finding is a finding that uses example data to demonstrate what a finding might contain.

source

pub fn schema_version(&self) -> Option<&str>

The version of the schema that was used to define the data structures in the finding.

source

pub fn severity(&self) -> Option<&Severity>

The severity level and score for the finding.

source

pub fn title(&self) -> Option<&str>

The brief description of the finding.

source

pub fn type(&self) -> Option<&FindingType>

The type of the finding.

source

pub fn updated_at(&self) -> Option<&DateTime>

The date and time, in UTC and extended ISO 8601 format, when Amazon Macie last updated the finding. For sensitive data findings, this value is the same as the value for the createdAt property. All sensitive data findings are considered new.

source§

impl Finding

source

pub fn builder() -> FindingBuilder

Creates a new builder-style object to manufacture Finding.

Trait Implementations§

source§

impl Clone for Finding

source§

fn clone(&self) -> Finding

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Finding

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq for Finding

source§

fn eq(&self, other: &Finding) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for Finding

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<Unshared, Shared> IntoShared<Shared> for Unsharedwhere Shared: FromUnshared<Unshared>,

source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

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
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more