Struct google_language1::Sentiment[][src]

pub struct Sentiment {
    pub score: Option<f32>,
    pub magnitude: Option<f32>,
}

Represents the feeling associated with the entire text or entities in the text.

This type is not used in any activity, and only used as part of another schema.

Fields

Sentiment score between -1.0 (negative sentiment) and 1.0 (positive sentiment).

A non-negative number in the [0, +inf) range, which represents the absolute magnitude of sentiment regardless of score (positive or negative).

Trait Implementations

impl Default for Sentiment
[src]

Returns the "default value" for a type. Read more

impl Clone for Sentiment
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Sentiment
[src]

Formats the value using the given formatter. Read more

impl Part for Sentiment
[src]

Auto Trait Implementations

impl Send for Sentiment

impl Sync for Sentiment