[][src]Struct gcp_client::google::cloud::language::v1beta1::language_service_client::LanguageServiceClient

pub struct LanguageServiceClient<T> { /* fields omitted */ }

Provides text analysis operations such as sentiment analysis and entity recognition.

Implementations

impl<T> LanguageServiceClient<T> where
    T: GrpcService<BoxBody>,
    T::ResponseBody: Body + HttpBody + Send + 'static,
    T::Error: Into<StdError>,
    <T::ResponseBody as HttpBody>::Error: Into<StdError> + Send
[src]

pub fn new(inner: T) -> Self[src]

pub fn with_interceptor(inner: T, interceptor: impl Into<Interceptor>) -> Self[src]

pub async fn analyze_sentiment<'_>(
    &'_ mut self,
    request: impl IntoRequest<AnalyzeSentimentRequest>
) -> Result<Response<AnalyzeSentimentResponse>, Status>
[src]

Analyzes the sentiment of the provided text.

pub async fn analyze_entities<'_>(
    &'_ mut self,
    request: impl IntoRequest<AnalyzeEntitiesRequest>
) -> Result<Response<AnalyzeEntitiesResponse>, Status>
[src]

Finds named entities (currently proper names and common nouns) in the text along with entity types, salience, mentions for each entity, and other properties.

pub async fn analyze_syntax<'_>(
    &'_ mut self,
    request: impl IntoRequest<AnalyzeSyntaxRequest>
) -> Result<Response<AnalyzeSyntaxResponse>, Status>
[src]

Analyzes the syntax of the text and provides sentence boundaries and tokenization along with part of speech tags, dependency trees, and other properties.

pub async fn annotate_text<'_>(
    &'_ mut self,
    request: impl IntoRequest<AnnotateTextRequest>
) -> Result<Response<AnnotateTextResponse>, Status>
[src]

A convenience method that provides all the features that analyzeSentiment, analyzeEntities, and analyzeSyntax provide in one call.

Trait Implementations

impl<T: Clone> Clone for LanguageServiceClient<T>[src]

impl<T> Debug for LanguageServiceClient<T>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for LanguageServiceClient<T>

impl<T> Send for LanguageServiceClient<T> where
    T: Send

impl<T> Sync for LanguageServiceClient<T> where
    T: Sync

impl<T> Unpin for LanguageServiceClient<T> where
    T: Unpin

impl<T> !UnwindSafe for LanguageServiceClient<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]