#[non_exhaustive]pub struct SentimentAnalysisResult {
pub query_text_sentiment: Option<Sentiment>,
/* private fields */
}answer-records or conversations or participants or sessions only.Expand description
The result of sentiment analysis. Sentiment analysis inspects user input and identifies the prevailing subjective opinion, especially to determine a user’s attitude as positive, negative, or neutral. For [DetectIntent][], it needs to be configured in [DetectIntentRequest.query_params][google.cloud.dialogflow.v2.DetectIntentRequest.query_params]. For [StreamingDetectIntent][], it needs to be configured in [StreamingDetectIntentRequest.query_params][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.query_params]. And for Participants.AnalyzeContent and [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent], it needs to be configured in ConversationProfile.human_agent_assistant_config
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.query_text_sentiment: Option<Sentiment>The sentiment analysis result for query_text.
Implementations§
Source§impl SentimentAnalysisResult
impl SentimentAnalysisResult
Sourcepub fn set_query_text_sentiment<T>(self, v: T) -> Self
pub fn set_query_text_sentiment<T>(self, v: T) -> Self
Sets the value of query_text_sentiment.
§Example
use google_cloud_dialogflow_v2::model::Sentiment;
let x = SentimentAnalysisResult::new().set_query_text_sentiment(Sentiment::default()/* use setters */);Sourcepub fn set_or_clear_query_text_sentiment<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_query_text_sentiment<T>(self, v: Option<T>) -> Self
Sets or clears the value of query_text_sentiment.
§Example
use google_cloud_dialogflow_v2::model::Sentiment;
let x = SentimentAnalysisResult::new().set_or_clear_query_text_sentiment(Some(Sentiment::default()/* use setters */));
let x = SentimentAnalysisResult::new().set_or_clear_query_text_sentiment(None::<Sentiment>);Trait Implementations§
Source§impl Clone for SentimentAnalysisResult
impl Clone for SentimentAnalysisResult
Source§fn clone(&self) -> SentimentAnalysisResult
fn clone(&self) -> SentimentAnalysisResult
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SentimentAnalysisResult
impl Debug for SentimentAnalysisResult
Source§impl Default for SentimentAnalysisResult
impl Default for SentimentAnalysisResult
Source§fn default() -> SentimentAnalysisResult
fn default() -> SentimentAnalysisResult
Source§impl Message for SentimentAnalysisResult
impl Message for SentimentAnalysisResult
Source§impl PartialEq for SentimentAnalysisResult
impl PartialEq for SentimentAnalysisResult
impl StructuralPartialEq for SentimentAnalysisResult
Auto Trait Implementations§
impl Freeze for SentimentAnalysisResult
impl RefUnwindSafe for SentimentAnalysisResult
impl Send for SentimentAnalysisResult
impl Sync for SentimentAnalysisResult
impl Unpin for SentimentAnalysisResult
impl UnsafeUnpin for SentimentAnalysisResult
impl UnwindSafe for SentimentAnalysisResult
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request