Struct google_language1::EntityMention [−][src]
pub struct EntityMention { pub text: Option<TextSpan>, pub type_: Option<String>, pub sentiment: Option<Sentiment>, }
Represents a mention for an entity in the text. Currently, proper noun mentions are supported.
This type is not used in any activity, and only used as part of another schema.
Fields
text: Option<TextSpan>
The mention text.
type_: Option<String>
The type of the entity mention.
sentiment: Option<Sentiment>
For calls to AnalyzeEntitySentiment or if AnnotateTextRequest.Features.extract_entity_sentiment is set to true, this field will contain the sentiment expressed for this mention of the entity in the provided document.
Trait Implementations
impl Default for EntityMention
[src]
impl Default for EntityMention
fn default() -> EntityMention
[src]
fn default() -> EntityMention
Returns the "default value" for a type. Read more
impl Clone for EntityMention
[src]
impl Clone for EntityMention
fn clone(&self) -> EntityMention
[src]
fn clone(&self) -> EntityMention
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)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for EntityMention
[src]
impl Debug for EntityMention
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 Part for EntityMention
[src]
impl Part for EntityMention
Auto Trait Implementations
impl Send for EntityMention
impl Send for EntityMention
impl Sync for EntityMention
impl Sync for EntityMention