pub struct AnalyzeSentimentResponse {
pub document_sentiment: Option<Sentiment>,
pub language: Option<String>,
pub sentences: Option<Vec<Sentence>>,
}
Expand description
The sentiment analysis response message.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- analyze sentiment documents (response)
Fields§
§document_sentiment: Option<Sentiment>
The overall sentiment of the input document.
language: Option<String>
The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language. See Document.language field for more details.
sentences: Option<Vec<Sentence>>
The sentiment for all the sentences in the document.
Trait Implementations§
source§impl Clone for AnalyzeSentimentResponse
impl Clone for AnalyzeSentimentResponse
source§fn clone(&self) -> AnalyzeSentimentResponse
fn clone(&self) -> AnalyzeSentimentResponse
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 AnalyzeSentimentResponse
impl Debug for AnalyzeSentimentResponse
source§impl Default for AnalyzeSentimentResponse
impl Default for AnalyzeSentimentResponse
source§fn default() -> AnalyzeSentimentResponse
fn default() -> AnalyzeSentimentResponse
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for AnalyzeSentimentResponse
impl<'de> Deserialize<'de> for AnalyzeSentimentResponse
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for AnalyzeSentimentResponse
impl Serialize for AnalyzeSentimentResponse
impl ResponseResult for AnalyzeSentimentResponse
Auto Trait Implementations§
impl RefUnwindSafe for AnalyzeSentimentResponse
impl Send for AnalyzeSentimentResponse
impl Sync for AnalyzeSentimentResponse
impl Unpin for AnalyzeSentimentResponse
impl UnwindSafe for AnalyzeSentimentResponse
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