pub struct AnnotateTextResponse {
pub document_sentiment: Option<Sentiment>,
pub entities: Option<Vec<Entity>>,
pub language: Option<String>,
pub sentences: Option<Vec<Sentence>>,
pub tokens: Option<Vec<Token>>,
}
Expand description
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§
§document_sentiment: Option<Sentiment>
The overall sentiment for the document. Populated if the user enables AnnotateTextRequest.Features.extract_document_sentiment.
entities: Option<Vec<Entity>>
Entities, along with their semantic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_entities.
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.
tokens: Option<Vec<Token>>
Tokens, along with their syntactic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
Trait Implementations§
Source§impl Clone for AnnotateTextResponse
impl Clone for AnnotateTextResponse
Source§fn clone(&self) -> AnnotateTextResponse
fn clone(&self) -> AnnotateTextResponse
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for AnnotateTextResponse
impl Debug for AnnotateTextResponse
Source§impl Default for AnnotateTextResponse
impl Default for AnnotateTextResponse
Source§fn default() -> AnnotateTextResponse
fn default() -> AnnotateTextResponse
Source§impl<'de> Deserialize<'de> for AnnotateTextResponse
impl<'de> Deserialize<'de> for AnnotateTextResponse
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>,
Source§impl Serialize for AnnotateTextResponse
impl Serialize for AnnotateTextResponse
impl ResponseResult for AnnotateTextResponse
Auto Trait Implementations§
impl Freeze for AnnotateTextResponse
impl RefUnwindSafe for AnnotateTextResponse
impl Send for AnnotateTextResponse
impl Sync for AnnotateTextResponse
impl Unpin for AnnotateTextResponse
impl UnwindSafe for AnnotateTextResponse
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more