Struct google_language1_beta1::api::AnnotateTextRequest
source · pub struct AnnotateTextRequest {
pub document: Option<Document>,
pub encoding_type: Option<String>,
pub features: Option<Features>,
}
Expand description
The request message for the text annotation API, which can perform multiple analysis types (sentiment, entities, and syntax) in one call.
§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 (request)
Fields§
§document: Option<Document>
Input document.
encoding_type: Option<String>
The encoding type used by the API to calculate offsets.
features: Option<Features>
The enabled features.
Trait Implementations§
source§impl Clone for AnnotateTextRequest
impl Clone for AnnotateTextRequest
source§fn clone(&self) -> AnnotateTextRequest
fn clone(&self) -> AnnotateTextRequest
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AnnotateTextRequest
impl Debug for AnnotateTextRequest
source§impl Default for AnnotateTextRequest
impl Default for AnnotateTextRequest
source§fn default() -> AnnotateTextRequest
fn default() -> AnnotateTextRequest
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for AnnotateTextRequest
impl<'de> Deserialize<'de> for AnnotateTextRequest
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for AnnotateTextRequest
impl Serialize for AnnotateTextRequest
impl RequestValue for AnnotateTextRequest
Auto Trait Implementations§
impl RefUnwindSafe for AnnotateTextRequest
impl Send for AnnotateTextRequest
impl Sync for AnnotateTextRequest
impl Unpin for AnnotateTextRequest
impl UnwindSafe for AnnotateTextRequest
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
Mutably borrows from an owned value. Read more