#[non_exhaustive]pub struct SentimentAnalysisSettings {
pub detect_sentiment: bool,
}
Expand description
Determines whether Amazon Lex will use Amazon Comprehend to detect the sentiment of user utterances.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.detect_sentiment: bool
Sets whether Amazon Lex uses Amazon Comprehend to detect the sentiment of user utterances.
Implementations§
source§impl SentimentAnalysisSettings
impl SentimentAnalysisSettings
sourcepub fn detect_sentiment(&self) -> bool
pub fn detect_sentiment(&self) -> bool
Sets whether Amazon Lex uses Amazon Comprehend to detect the sentiment of user utterances.
source§impl SentimentAnalysisSettings
impl SentimentAnalysisSettings
sourcepub fn builder() -> SentimentAnalysisSettingsBuilder
pub fn builder() -> SentimentAnalysisSettingsBuilder
Creates a new builder-style object to manufacture SentimentAnalysisSettings
.
Trait Implementations§
source§impl Clone for SentimentAnalysisSettings
impl Clone for SentimentAnalysisSettings
source§fn clone(&self) -> SentimentAnalysisSettings
fn clone(&self) -> SentimentAnalysisSettings
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 SentimentAnalysisSettings
impl Debug for SentimentAnalysisSettings
source§impl PartialEq for SentimentAnalysisSettings
impl PartialEq for SentimentAnalysisSettings
source§fn eq(&self, other: &SentimentAnalysisSettings) -> bool
fn eq(&self, other: &SentimentAnalysisSettings) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SentimentAnalysisSettings
Auto Trait Implementations§
impl Freeze for SentimentAnalysisSettings
impl RefUnwindSafe for SentimentAnalysisSettings
impl Send for SentimentAnalysisSettings
impl Sync for SentimentAnalysisSettings
impl Unpin for SentimentAnalysisSettings
impl UnwindSafe for SentimentAnalysisSettings
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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.