Struct google_language1::AnalyzeSentimentResponse [−][src]
pub struct AnalyzeSentimentResponse { pub document_sentiment: Option<Sentiment>, pub language: Option<String>, pub sentences: Option<Vec<Sentence>>, }
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
impl Default for AnalyzeSentimentResponse
[src]
impl Default for AnalyzeSentimentResponse
fn default() -> AnalyzeSentimentResponse
[src]
fn default() -> AnalyzeSentimentResponse
Returns the "default value" for a type. Read more
impl Clone for AnalyzeSentimentResponse
[src]
impl Clone for AnalyzeSentimentResponse
fn clone(&self) -> AnalyzeSentimentResponse
[src]
fn clone(&self) -> AnalyzeSentimentResponse
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for AnalyzeSentimentResponse
[src]
impl Debug for AnalyzeSentimentResponse
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl ResponseResult for AnalyzeSentimentResponse
[src]
impl ResponseResult for AnalyzeSentimentResponse
Auto Trait Implementations
impl Send for AnalyzeSentimentResponse
impl Send for AnalyzeSentimentResponse
impl Sync for AnalyzeSentimentResponse
impl Sync for AnalyzeSentimentResponse