Struct google_language1_beta1::api::Sentiment
source · pub struct Sentiment {
pub magnitude: Option<f32>,
pub polarity: Option<f32>,
pub score: Option<f32>,
}
Expand description
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§
§magnitude: Option<f32>
A non-negative number in the [0, +inf) range, which represents the absolute magnitude of sentiment regardless of score (positive or negative).
polarity: Option<f32>
DEPRECATED FIELD - This field is being deprecated in favor of score. Please refer to our documentation at https://cloud.google.com/natural-language/docs for more information.
score: Option<f32>
Sentiment score between -1.0 (negative sentiment) and 1.0 (positive sentiment).
Trait Implementations§
source§impl<'de> Deserialize<'de> for Sentiment
impl<'de> Deserialize<'de> for Sentiment
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
impl Part for Sentiment
Auto Trait Implementations§
impl RefUnwindSafe for Sentiment
impl Send for Sentiment
impl Sync for Sentiment
impl Unpin for Sentiment
impl UnwindSafe for Sentiment
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