#[non_exhaustive]pub struct SentimentAnalysisRequestConfig {
pub analyze_query_text_sentiment: bool,
/* private fields */
}Available on crate features
participants or sessions only.Expand description
Configures the types of sentiment analysis to perform.
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.analyze_query_text_sentiment: boolInstructs the service to perform sentiment analysis on
query_text. If not provided, sentiment analysis is not performed on
query_text.
Implementations§
Source§impl SentimentAnalysisRequestConfig
impl SentimentAnalysisRequestConfig
pub fn new() -> Self
Sourcepub fn set_analyze_query_text_sentiment<T: Into<bool>>(self, v: T) -> Self
pub fn set_analyze_query_text_sentiment<T: Into<bool>>(self, v: T) -> Self
Sets the value of analyze_query_text_sentiment.
§Example
ⓘ
let x = SentimentAnalysisRequestConfig::new().set_analyze_query_text_sentiment(true);Trait Implementations§
Source§impl Clone for SentimentAnalysisRequestConfig
impl Clone for SentimentAnalysisRequestConfig
Source§fn clone(&self) -> SentimentAnalysisRequestConfig
fn clone(&self) -> SentimentAnalysisRequestConfig
Returns a duplicate 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 Default for SentimentAnalysisRequestConfig
impl Default for SentimentAnalysisRequestConfig
Source§fn default() -> SentimentAnalysisRequestConfig
fn default() -> SentimentAnalysisRequestConfig
Returns the “default value” for a type. Read more
Source§impl PartialEq for SentimentAnalysisRequestConfig
impl PartialEq for SentimentAnalysisRequestConfig
Source§fn eq(&self, other: &SentimentAnalysisRequestConfig) -> bool
fn eq(&self, other: &SentimentAnalysisRequestConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SentimentAnalysisRequestConfig
Auto Trait Implementations§
impl Freeze for SentimentAnalysisRequestConfig
impl RefUnwindSafe for SentimentAnalysisRequestConfig
impl Send for SentimentAnalysisRequestConfig
impl Sync for SentimentAnalysisRequestConfig
impl Unpin for SentimentAnalysisRequestConfig
impl UnwindSafe for SentimentAnalysisRequestConfig
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