Struct aws_sdk_comprehend::types::PiiEntity
source · #[non_exhaustive]pub struct PiiEntity {
pub score: Option<f32>,
pub type: Option<PiiEntityType>,
pub begin_offset: Option<i32>,
pub end_offset: Option<i32>,
}
Expand description
Provides information about a PII entity.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.score: Option<f32>
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
type: Option<PiiEntityType>
The entity's type.
begin_offset: Option<i32>
The zero-based offset from the beginning of the source text to the first character in the entity.
end_offset: Option<i32>
The zero-based offset from the beginning of the source text to the last character in the entity.
Implementations§
source§impl PiiEntity
impl PiiEntity
sourcepub fn score(&self) -> Option<f32>
pub fn score(&self) -> Option<f32>
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
sourcepub fn type(&self) -> Option<&PiiEntityType>
pub fn type(&self) -> Option<&PiiEntityType>
The entity's type.
sourcepub fn begin_offset(&self) -> Option<i32>
pub fn 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) -> Option<i32>
pub fn 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 PartialEq for PiiEntity
impl PartialEq for PiiEntity
impl StructuralPartialEq for PiiEntity
Auto Trait Implementations§
impl RefUnwindSafe for PiiEntity
impl Send for PiiEntity
impl Sync for PiiEntity
impl Unpin for PiiEntity
impl UnwindSafe for PiiEntity
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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.