#[non_exhaustive]pub struct ClassificationResultBuilder { /* private fields */ }
Expand description
A builder for ClassificationResult
.
Implementations§
source§impl ClassificationResultBuilder
impl ClassificationResultBuilder
sourcepub fn mime_type(self, input: impl Into<String>) -> Self
pub fn mime_type(self, input: impl Into<String>) -> Self
The type of content that the finding applies to.
sourcepub fn set_mime_type(self, input: Option<String>) -> Self
pub fn set_mime_type(self, input: Option<String>) -> Self
The type of content that the finding applies to.
sourcepub fn get_mime_type(&self) -> &Option<String>
pub fn get_mime_type(&self) -> &Option<String>
The type of content that the finding applies to.
sourcepub fn size_classified(self, input: i64) -> Self
pub fn size_classified(self, input: i64) -> Self
The total size in bytes of the affected data.
sourcepub fn set_size_classified(self, input: Option<i64>) -> Self
pub fn set_size_classified(self, input: Option<i64>) -> Self
The total size in bytes of the affected data.
sourcepub fn get_size_classified(&self) -> &Option<i64>
pub fn get_size_classified(&self) -> &Option<i64>
The total size in bytes of the affected data.
sourcepub fn additional_occurrences(self, input: bool) -> Self
pub fn additional_occurrences(self, input: bool) -> Self
Indicates whether there are additional occurrences of sensitive data that are not included in the finding. This occurs when the number of occurrences exceeds the maximum that can be included.
sourcepub fn set_additional_occurrences(self, input: Option<bool>) -> Self
pub fn set_additional_occurrences(self, input: Option<bool>) -> Self
Indicates whether there are additional occurrences of sensitive data that are not included in the finding. This occurs when the number of occurrences exceeds the maximum that can be included.
sourcepub fn get_additional_occurrences(&self) -> &Option<bool>
pub fn get_additional_occurrences(&self) -> &Option<bool>
Indicates whether there are additional occurrences of sensitive data that are not included in the finding. This occurs when the number of occurrences exceeds the maximum that can be included.
sourcepub fn status(self, input: ClassificationStatus) -> Self
pub fn status(self, input: ClassificationStatus) -> Self
The current status of the sensitive data detection.
sourcepub fn set_status(self, input: Option<ClassificationStatus>) -> Self
pub fn set_status(self, input: Option<ClassificationStatus>) -> Self
The current status of the sensitive data detection.
sourcepub fn get_status(&self) -> &Option<ClassificationStatus>
pub fn get_status(&self) -> &Option<ClassificationStatus>
The current status of the sensitive data detection.
sourcepub fn sensitive_data(self, input: SensitiveDataResult) -> Self
pub fn sensitive_data(self, input: SensitiveDataResult) -> Self
Appends an item to sensitive_data
.
To override the contents of this collection use set_sensitive_data
.
Provides details about sensitive data that was identified based on built-in configuration.
sourcepub fn set_sensitive_data(self, input: Option<Vec<SensitiveDataResult>>) -> Self
pub fn set_sensitive_data(self, input: Option<Vec<SensitiveDataResult>>) -> Self
Provides details about sensitive data that was identified based on built-in configuration.
sourcepub fn get_sensitive_data(&self) -> &Option<Vec<SensitiveDataResult>>
pub fn get_sensitive_data(&self) -> &Option<Vec<SensitiveDataResult>>
Provides details about sensitive data that was identified based on built-in configuration.
sourcepub fn custom_data_identifiers(self, input: CustomDataIdentifiersResult) -> Self
pub fn custom_data_identifiers(self, input: CustomDataIdentifiersResult) -> Self
Provides details about sensitive data that was identified based on customer-defined configuration.
sourcepub fn set_custom_data_identifiers(
self,
input: Option<CustomDataIdentifiersResult>
) -> Self
pub fn set_custom_data_identifiers( self, input: Option<CustomDataIdentifiersResult> ) -> Self
Provides details about sensitive data that was identified based on customer-defined configuration.
sourcepub fn get_custom_data_identifiers(
&self
) -> &Option<CustomDataIdentifiersResult>
pub fn get_custom_data_identifiers( &self ) -> &Option<CustomDataIdentifiersResult>
Provides details about sensitive data that was identified based on customer-defined configuration.
sourcepub fn build(self) -> ClassificationResult
pub fn build(self) -> ClassificationResult
Consumes the builder and constructs a ClassificationResult
.
Trait Implementations§
source§impl Clone for ClassificationResultBuilder
impl Clone for ClassificationResultBuilder
source§fn clone(&self) -> ClassificationResultBuilder
fn clone(&self) -> ClassificationResultBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ClassificationResultBuilder
impl Debug for ClassificationResultBuilder
source§impl Default for ClassificationResultBuilder
impl Default for ClassificationResultBuilder
source§fn default() -> ClassificationResultBuilder
fn default() -> ClassificationResultBuilder
source§impl PartialEq for ClassificationResultBuilder
impl PartialEq for ClassificationResultBuilder
source§fn eq(&self, other: &ClassificationResultBuilder) -> bool
fn eq(&self, other: &ClassificationResultBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ClassificationResultBuilder
Auto Trait Implementations§
impl Freeze for ClassificationResultBuilder
impl RefUnwindSafe for ClassificationResultBuilder
impl Send for ClassificationResultBuilder
impl Sync for ClassificationResultBuilder
impl Unpin for ClassificationResultBuilder
impl UnwindSafe for ClassificationResultBuilder
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