Struct aws_sdk_comprehend::types::builders::KeyPhraseBuilder
source · #[non_exhaustive]pub struct KeyPhraseBuilder { /* private fields */ }Expand description
A builder for KeyPhrase.
Implementations§
source§impl KeyPhraseBuilder
impl KeyPhraseBuilder
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 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 key phrase.
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 key phrase.
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 key phrase.
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 key phrase.
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 key phrase.
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 key phrase.
Trait Implementations§
source§impl Clone for KeyPhraseBuilder
impl Clone for KeyPhraseBuilder
source§fn clone(&self) -> KeyPhraseBuilder
fn clone(&self) -> KeyPhraseBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for KeyPhraseBuilder
impl Debug for KeyPhraseBuilder
source§impl Default for KeyPhraseBuilder
impl Default for KeyPhraseBuilder
source§fn default() -> KeyPhraseBuilder
fn default() -> KeyPhraseBuilder
source§impl PartialEq for KeyPhraseBuilder
impl PartialEq for KeyPhraseBuilder
source§fn eq(&self, other: &KeyPhraseBuilder) -> bool
fn eq(&self, other: &KeyPhraseBuilder) -> bool
self and other values to be equal, and is used
by ==.