Struct aws_sdk_comprehend::types::builders::PiiEntityBuilder
source · #[non_exhaustive]pub struct PiiEntityBuilder { /* private fields */ }Expand description
A builder for PiiEntity.
Implementations§
source§impl PiiEntityBuilder
impl PiiEntityBuilder
sourcepub fn score(self, input: f32) -> Self
pub fn score(self, input: f32) -> Self
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
sourcepub fn set_score(self, input: Option<f32>) -> Self
pub fn set_score(self, input: Option<f32>) -> Self
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
sourcepub fn get_score(&self) -> &Option<f32>
pub fn get_score(&self) -> &Option<f32>
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
sourcepub fn type(self, input: PiiEntityType) -> Self
pub fn type(self, input: PiiEntityType) -> Self
The entity's type.
sourcepub fn set_type(self, input: Option<PiiEntityType>) -> Self
pub fn set_type(self, input: Option<PiiEntityType>) -> Self
The entity's type.
sourcepub fn get_type(&self) -> &Option<PiiEntityType>
pub fn get_type(&self) -> &Option<PiiEntityType>
The entity's type.
sourcepub fn begin_offset(self, input: i32) -> Self
pub fn begin_offset(self, input: i32) -> Self
The zero-based offset from the beginning of the source text to the first character in the entity.
sourcepub fn set_begin_offset(self, input: Option<i32>) -> Self
pub fn set_begin_offset(self, input: Option<i32>) -> Self
The zero-based offset from the beginning of the source text to the first character in the entity.
sourcepub fn get_begin_offset(&self) -> &Option<i32>
pub fn get_begin_offset(&self) -> &Option<i32>
The zero-based offset from the beginning of the source text to the first character in the entity.
sourcepub fn end_offset(self, input: i32) -> Self
pub fn end_offset(self, input: i32) -> Self
The zero-based offset from the beginning of the source text to the last character in the entity.
sourcepub fn set_end_offset(self, input: Option<i32>) -> Self
pub fn set_end_offset(self, input: Option<i32>) -> Self
The zero-based offset from the beginning of the source text to the last character in the entity.
sourcepub fn get_end_offset(&self) -> &Option<i32>
pub fn get_end_offset(&self) -> &Option<i32>
The zero-based offset from the beginning of the source text to the last character in the entity.
Trait Implementations§
source§impl Clone for PiiEntityBuilder
impl Clone for PiiEntityBuilder
source§fn clone(&self) -> PiiEntityBuilder
fn clone(&self) -> PiiEntityBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for PiiEntityBuilder
impl Debug for PiiEntityBuilder
source§impl Default for PiiEntityBuilder
impl Default for PiiEntityBuilder
source§fn default() -> PiiEntityBuilder
fn default() -> PiiEntityBuilder
source§impl PartialEq for PiiEntityBuilder
impl PartialEq for PiiEntityBuilder
source§fn eq(&self, other: &PiiEntityBuilder) -> bool
fn eq(&self, other: &PiiEntityBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for PiiEntityBuilder
Auto Trait Implementations§
impl Freeze for PiiEntityBuilder
impl RefUnwindSafe for PiiEntityBuilder
impl Send for PiiEntityBuilder
impl Sync for PiiEntityBuilder
impl Unpin for PiiEntityBuilder
impl UnwindSafe for PiiEntityBuilder
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