Struct google_language1::api::DocumentMethods [−][src]
A builder providing access to all methods supported on document resources.
It is not used directly, but through the CloudNaturalLanguage hub.
Example
Instantiate a resource builder
extern crate hyper; extern crate hyper_rustls; extern crate yup_oauth2 as oauth2; extern crate google_language1 as language1; use std::default::Default; use oauth2; use language1::CloudNaturalLanguage; let secret: oauth2::ApplicationSecret = Default::default(); let auth = yup_oauth2::InstalledFlowAuthenticator::builder( secret, yup_oauth2::InstalledFlowReturnMethod::HTTPRedirect, ).build().await.unwrap(); let mut hub = CloudNaturalLanguage::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); // Usually you wouldn't bind this to a variable, but keep calling *CallBuilders* // like `analyze_entities(...)`, `analyze_entity_sentiment(...)`, `analyze_sentiment(...)`, `analyze_syntax(...)`, `annotate_text(...)` and `classify_text(...)` // to build up your call. let rb = hub.documents();
Implementations
impl<'a, C> DocumentMethods<'a, C>[src]
pub fn analyze_entities(
&self,
request: AnalyzeEntitiesRequest
) -> DocumentAnalyzeEntityCall<'a, C>[src]
&self,
request: AnalyzeEntitiesRequest
) -> DocumentAnalyzeEntityCall<'a, C>
Create a builder to help you perform the following task:
Finds named entities (currently proper names and common nouns) in the text along with entity types, salience, mentions for each entity, and other properties.
Arguments
request- No description provided.
pub fn analyze_entity_sentiment(
&self,
request: AnalyzeEntitySentimentRequest
) -> DocumentAnalyzeEntitySentimentCall<'a, C>[src]
&self,
request: AnalyzeEntitySentimentRequest
) -> DocumentAnalyzeEntitySentimentCall<'a, C>
Create a builder to help you perform the following task:
Finds entities, similar to AnalyzeEntities in the text and analyzes sentiment associated with each entity and its mentions.
Arguments
request- No description provided.
pub fn analyze_sentiment(
&self,
request: AnalyzeSentimentRequest
) -> DocumentAnalyzeSentimentCall<'a, C>[src]
&self,
request: AnalyzeSentimentRequest
) -> DocumentAnalyzeSentimentCall<'a, C>
Create a builder to help you perform the following task:
Analyzes the sentiment of the provided text.
Arguments
request- No description provided.
pub fn analyze_syntax(
&self,
request: AnalyzeSyntaxRequest
) -> DocumentAnalyzeSyntaxCall<'a, C>[src]
&self,
request: AnalyzeSyntaxRequest
) -> DocumentAnalyzeSyntaxCall<'a, C>
Create a builder to help you perform the following task:
Analyzes the syntax of the text and provides sentence boundaries and tokenization along with part of speech tags, dependency trees, and other properties.
Arguments
request- No description provided.
pub fn annotate_text(
&self,
request: AnnotateTextRequest
) -> DocumentAnnotateTextCall<'a, C>[src]
&self,
request: AnnotateTextRequest
) -> DocumentAnnotateTextCall<'a, C>
Create a builder to help you perform the following task:
A convenience method that provides all the features that analyzeSentiment, analyzeEntities, and analyzeSyntax provide in one call.
Arguments
request- No description provided.
pub fn classify_text(
&self,
request: ClassifyTextRequest
) -> DocumentClassifyTextCall<'a, C>[src]
&self,
request: ClassifyTextRequest
) -> DocumentClassifyTextCall<'a, C>
Create a builder to help you perform the following task:
Classifies a document into categories.
Arguments
request- No description provided.
Trait Implementations
impl<'a, C> MethodsBuilder for DocumentMethods<'a, C>[src]
Auto Trait Implementations
impl<'a, C> !RefUnwindSafe for DocumentMethods<'a, C>[src]
impl<'a, C> !Send for DocumentMethods<'a, C>[src]
impl<'a, C> !Sync for DocumentMethods<'a, C>[src]
impl<'a, C> Unpin for DocumentMethods<'a, C>[src]
impl<'a, C> !UnwindSafe for DocumentMethods<'a, C>[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,