Struct aws_sdk_transcribe::types::ContentRedaction
source · #[non_exhaustive]pub struct ContentRedaction {
pub redaction_type: RedactionType,
pub redaction_output: RedactionOutput,
pub pii_entity_types: Option<Vec<PiiEntityType>>,
}Expand description
Makes it possible to redact or flag specified personally identifiable information (PII) in your transcript. If you use ContentRedaction, you must also include the sub-parameters: RedactionOutput and RedactionType. You can optionally include PiiEntityTypes to choose which types of PII you want to redact.
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.redaction_type: RedactionTypeSpecify the category of information you want to redact; PII (personally identifiable information) is the only valid value. You can use PiiEntityTypes to choose which types of PII you want to redact. If you do not include PiiEntityTypes in your request, all PII is redacted.
redaction_output: RedactionOutputSpecify if you want only a redacted transcript, or if you want a redacted and an unredacted transcript.
When you choose redacted Amazon Transcribe creates only a redacted transcript.
When you choose redacted_and_unredacted Amazon Transcribe creates a redacted and an unredacted transcript (as two separate files).
pii_entity_types: Option<Vec<PiiEntityType>>Specify which types of personally identifiable information (PII) you want to redact in your transcript. You can include as many types as you'd like, or you can select ALL. If you do not include PiiEntityTypes in your request, all PII is redacted.
Implementations§
source§impl ContentRedaction
impl ContentRedaction
sourcepub fn redaction_type(&self) -> &RedactionType
pub fn redaction_type(&self) -> &RedactionType
Specify the category of information you want to redact; PII (personally identifiable information) is the only valid value. You can use PiiEntityTypes to choose which types of PII you want to redact. If you do not include PiiEntityTypes in your request, all PII is redacted.
sourcepub fn redaction_output(&self) -> &RedactionOutput
pub fn redaction_output(&self) -> &RedactionOutput
Specify if you want only a redacted transcript, or if you want a redacted and an unredacted transcript.
When you choose redacted Amazon Transcribe creates only a redacted transcript.
When you choose redacted_and_unredacted Amazon Transcribe creates a redacted and an unredacted transcript (as two separate files).
sourcepub fn pii_entity_types(&self) -> &[PiiEntityType]
pub fn pii_entity_types(&self) -> &[PiiEntityType]
Specify which types of personally identifiable information (PII) you want to redact in your transcript. You can include as many types as you'd like, or you can select ALL. If you do not include PiiEntityTypes in your request, all PII is redacted.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .pii_entity_types.is_none().
source§impl ContentRedaction
impl ContentRedaction
sourcepub fn builder() -> ContentRedactionBuilder
pub fn builder() -> ContentRedactionBuilder
Creates a new builder-style object to manufacture ContentRedaction.
Trait Implementations§
source§impl Clone for ContentRedaction
impl Clone for ContentRedaction
source§fn clone(&self) -> ContentRedaction
fn clone(&self) -> ContentRedaction
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ContentRedaction
impl Debug for ContentRedaction
source§impl PartialEq for ContentRedaction
impl PartialEq for ContentRedaction
source§fn eq(&self, other: &ContentRedaction) -> bool
fn eq(&self, other: &ContentRedaction) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ContentRedaction
Auto Trait Implementations§
impl Freeze for ContentRedaction
impl RefUnwindSafe for ContentRedaction
impl Send for ContentRedaction
impl Sync for ContentRedaction
impl Unpin for ContentRedaction
impl UnwindSafe for ContentRedaction
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