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 ==.