Struct google_language1_beta1::AnnotateTextResponse [−][src]
pub struct AnnotateTextResponse { pub tokens: Option<Vec<Token>>, pub entities: Option<Vec<Entity>>, pub document_sentiment: Option<Sentiment>, pub language: Option<String>, pub sentences: Option<Vec<Sentence>>, }
The text annotations 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).
- annotate text documents (response)
Fields
tokens: Option<Vec<Token>>
Tokens, along with their syntactic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
entities: Option<Vec<Entity>>
Entities, along with their semantic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_entities.
document_sentiment: Option<Sentiment>
The overall sentiment for the document. Populated if the user enables AnnotateTextRequest.Features.extract_document_sentiment.
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>>
Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
Trait Implementations
impl Default for AnnotateTextResponse
[src]
impl Default for AnnotateTextResponse
fn default() -> AnnotateTextResponse
[src]
fn default() -> AnnotateTextResponse
Returns the "default value" for a type. Read more
impl Clone for AnnotateTextResponse
[src]
impl Clone for AnnotateTextResponse
fn clone(&self) -> AnnotateTextResponse
[src]
fn clone(&self) -> AnnotateTextResponse
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)
Performs copy-assignment from source
. Read more
impl Debug for AnnotateTextResponse
[src]
impl Debug for AnnotateTextResponse
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 AnnotateTextResponse
[src]
impl ResponseResult for AnnotateTextResponse
Auto Trait Implementations
impl Send for AnnotateTextResponse
impl Send for AnnotateTextResponse
impl Sync for AnnotateTextResponse
impl Sync for AnnotateTextResponse