Struct aws_sdk_lexruntimev2::model::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
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.
The individual sentiment responses for the utterance.
Creates a new builder-style object to manufacture SentimentResponse
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for SentimentResponse
impl Send for SentimentResponse
impl Sync for SentimentResponse
impl Unpin for SentimentResponse
impl UnwindSafe for SentimentResponse
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
