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 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 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.
Trait Implementations§
source§impl Clone for KeyPhraseBuilder
impl Clone for KeyPhraseBuilder
source§fn clone(&self) -> KeyPhraseBuilder
fn clone(&self) -> KeyPhraseBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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
Returns the “default value” for a type. Read more
source§impl PartialEq<KeyPhraseBuilder> for KeyPhraseBuilder
impl PartialEq<KeyPhraseBuilder> for KeyPhraseBuilder
source§fn eq(&self, other: &KeyPhraseBuilder) -> bool
fn eq(&self, other: &KeyPhraseBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.