#[non_exhaustive]pub struct SensitiveDataResultBuilder { /* private fields */ }
Expand description
A builder for SensitiveDataResult
.
Implementations§
source§impl SensitiveDataResultBuilder
impl SensitiveDataResultBuilder
sourcepub fn category(self, input: impl Into<String>) -> Self
pub fn category(self, input: impl Into<String>) -> Self
The category of sensitive data that was detected. For example, the category can indicate that the sensitive data involved credentials, financial information, or personal information.
sourcepub fn set_category(self, input: Option<String>) -> Self
pub fn set_category(self, input: Option<String>) -> Self
The category of sensitive data that was detected. For example, the category can indicate that the sensitive data involved credentials, financial information, or personal information.
sourcepub fn get_category(&self) -> &Option<String>
pub fn get_category(&self) -> &Option<String>
The category of sensitive data that was detected. For example, the category can indicate that the sensitive data involved credentials, financial information, or personal information.
sourcepub fn detections(self, input: SensitiveDataDetections) -> Self
pub fn detections(self, input: SensitiveDataDetections) -> Self
Appends an item to detections
.
To override the contents of this collection use set_detections
.
The list of detected instances of sensitive data.
sourcepub fn set_detections(self, input: Option<Vec<SensitiveDataDetections>>) -> Self
pub fn set_detections(self, input: Option<Vec<SensitiveDataDetections>>) -> Self
The list of detected instances of sensitive data.
sourcepub fn get_detections(&self) -> &Option<Vec<SensitiveDataDetections>>
pub fn get_detections(&self) -> &Option<Vec<SensitiveDataDetections>>
The list of detected instances of sensitive data.
sourcepub fn total_count(self, input: i64) -> Self
pub fn total_count(self, input: i64) -> Self
The total number of occurrences of sensitive data.
sourcepub fn set_total_count(self, input: Option<i64>) -> Self
pub fn set_total_count(self, input: Option<i64>) -> Self
The total number of occurrences of sensitive data.
sourcepub fn get_total_count(&self) -> &Option<i64>
pub fn get_total_count(&self) -> &Option<i64>
The total number of occurrences of sensitive data.
sourcepub fn build(self) -> SensitiveDataResult
pub fn build(self) -> SensitiveDataResult
Consumes the builder and constructs a SensitiveDataResult
.
Trait Implementations§
source§impl Clone for SensitiveDataResultBuilder
impl Clone for SensitiveDataResultBuilder
source§fn clone(&self) -> SensitiveDataResultBuilder
fn clone(&self) -> SensitiveDataResultBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SensitiveDataResultBuilder
impl Debug for SensitiveDataResultBuilder
source§impl Default for SensitiveDataResultBuilder
impl Default for SensitiveDataResultBuilder
source§fn default() -> SensitiveDataResultBuilder
fn default() -> SensitiveDataResultBuilder
source§impl PartialEq for SensitiveDataResultBuilder
impl PartialEq for SensitiveDataResultBuilder
source§fn eq(&self, other: &SensitiveDataResultBuilder) -> bool
fn eq(&self, other: &SensitiveDataResultBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SensitiveDataResultBuilder
Auto Trait Implementations§
impl Freeze for SensitiveDataResultBuilder
impl RefUnwindSafe for SensitiveDataResultBuilder
impl Send for SensitiveDataResultBuilder
impl Sync for SensitiveDataResultBuilder
impl Unpin for SensitiveDataResultBuilder
impl UnwindSafe for SensitiveDataResultBuilder
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