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 ==.impl StructuralPartialEq for SentimentResponse
Auto Trait Implementations§
impl Freeze for SentimentResponse
impl RefUnwindSafe for SentimentResponse
impl Send for SentimentResponse
impl Sync for SentimentResponse
impl Unpin for SentimentResponse
impl UnwindSafe for SentimentResponse
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more