Struct aws_sdk_comprehend::types::KeyPhrase
source · #[non_exhaustive]pub struct KeyPhrase {
pub score: Option<f32>,
pub text: Option<String>,
pub begin_offset: Option<i32>,
pub end_offset: Option<i32>,
}
Expand description
Describes a key noun phrase.
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.
text: Option<String>
The text of a key noun phrase.
begin_offset: Option<i32>
The zero-based offset from the beginning of the source text to the first character in the key phrase.
end_offset: Option<i32>
The zero-based offset from the beginning of the source text to the last character in the key phrase.
Implementations§
source§impl KeyPhrase
impl KeyPhrase
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 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 key phrase.
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 key phrase.
Trait Implementations§
source§impl PartialEq for KeyPhrase
impl PartialEq for KeyPhrase
impl StructuralPartialEq for KeyPhrase
Auto Trait Implementations§
impl RefUnwindSafe for KeyPhrase
impl Send for KeyPhrase
impl Sync for KeyPhrase
impl Unpin for KeyPhrase
impl UnwindSafe for KeyPhrase
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.