Struct aws_sdk_lexruntimev2::model::SentimentResponse
source · #[non_exhaustive]pub struct SentimentResponse { /* private fields */ }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.
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() -> Builder
pub fn builder() -> Builder
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
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 SentimentResponse
impl Debug for SentimentResponse
source§impl PartialEq<SentimentResponse> for SentimentResponse
impl PartialEq<SentimentResponse> for SentimentResponse
source§fn eq(&self, other: &SentimentResponse) -> bool
fn eq(&self, other: &SentimentResponse) -> bool
This method tests for
self and other values to be equal, and is used
by ==.