Struct aws_sdk_lexruntimev2::types::SentimentResponse
source · #[non_exhaustive]pub struct SentimentResponse {
pub sentiment: Option<SentimentType>,
pub sentiment_score: Option<SentimentScore>,
}
Expand description
Provides information about the sentiment expressed in a user's response in a conversation. Sentiments are determined using Amazon Comprehend. Sentiments are only returned if they are enabled for the bot.
For more information, see Determine Sentiment in the Amazon Comprehend developer guide.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.sentiment: Option<SentimentType>
The overall sentiment expressed in the user's response. This is the sentiment most likely expressed by the user based on the analysis by Amazon Comprehend.
sentiment_score: Option<SentimentScore>
The individual sentiment responses for the utterance.
Implementations§
source§impl SentimentResponse
impl SentimentResponse
sourcepub fn sentiment(&self) -> Option<&SentimentType>
pub fn sentiment(&self) -> Option<&SentimentType>
The overall sentiment expressed in the user's response. This is the sentiment most likely expressed by the user based on the analysis by Amazon Comprehend.
sourcepub fn sentiment_score(&self) -> Option<&SentimentScore>
pub fn sentiment_score(&self) -> Option<&SentimentScore>
The individual sentiment responses for the utterance.
source§impl SentimentResponse
impl SentimentResponse
sourcepub fn builder() -> SentimentResponseBuilder
pub fn builder() -> SentimentResponseBuilder
Creates a new builder-style object to manufacture SentimentResponse
.
Trait Implementations§
source§impl Clone for SentimentResponse
impl Clone for SentimentResponse
source§fn clone(&self) -> SentimentResponse
fn clone(&self) -> SentimentResponse
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SentimentResponse
impl Debug for SentimentResponse
source§impl PartialEq for SentimentResponse
impl PartialEq for SentimentResponse
source§fn eq(&self, other: &SentimentResponse) -> bool
fn eq(&self, other: &SentimentResponse) -> bool
self
and other
values to be equal, and is used
by ==
.