Struct aws_sdk_comprehend::input::DetectSentimentInput
source · #[non_exhaustive]pub struct DetectSentimentInput { /* private fields */ }Implementations§
source§impl DetectSentimentInput
impl DetectSentimentInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DetectSentiment, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DetectSentiment, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<DetectSentiment>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture DetectSentimentInput.
source§impl DetectSentimentInput
impl DetectSentimentInput
sourcepub fn text(&self) -> Option<&str>
pub fn text(&self) -> Option<&str>
A UTF-8 text string. The maximum string size is 5 KB.
Amazon Comprehend performs real-time sentiment analysis on the first 500 characters of the input text and ignores any additional text in the input.
sourcepub fn language_code(&self) -> Option<&LanguageCode>
pub fn language_code(&self) -> Option<&LanguageCode>
The language of the input documents. You can specify any of the primary languages supported by Amazon Comprehend. All documents must be in the same language.
Trait Implementations§
source§impl Clone for DetectSentimentInput
impl Clone for DetectSentimentInput
source§fn clone(&self) -> DetectSentimentInput
fn clone(&self) -> DetectSentimentInput
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 DetectSentimentInput
impl Debug for DetectSentimentInput
source§impl PartialEq<DetectSentimentInput> for DetectSentimentInput
impl PartialEq<DetectSentimentInput> for DetectSentimentInput
source§fn eq(&self, other: &DetectSentimentInput) -> bool
fn eq(&self, other: &DetectSentimentInput) -> bool
This method tests for
self and other values to be equal, and is used
by ==.