pub struct GoogleCloudDialogflowV2Sentiment {
pub magnitude: Option<f32>,
pub score: Option<f32>,
}
Expand description
The sentiment, such as positive/negative feeling or association, for a unit of analysis, such as the query text. See: https://cloud.google.com/natural-language/docs/basics#interpreting_sentiment_analysis_values for how to interpret the result.
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).
score: Option<f32>
Sentiment score between -1.0 (negative sentiment) and 1.0 (positive sentiment).
Trait Implementations§
source§impl Clone for GoogleCloudDialogflowV2Sentiment
impl Clone for GoogleCloudDialogflowV2Sentiment
source§fn clone(&self) -> GoogleCloudDialogflowV2Sentiment
fn clone(&self) -> GoogleCloudDialogflowV2Sentiment
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 Default for GoogleCloudDialogflowV2Sentiment
impl Default for GoogleCloudDialogflowV2Sentiment
source§fn default() -> GoogleCloudDialogflowV2Sentiment
fn default() -> GoogleCloudDialogflowV2Sentiment
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for GoogleCloudDialogflowV2Sentiment
impl<'de> Deserialize<'de> for GoogleCloudDialogflowV2Sentiment
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 GoogleCloudDialogflowV2Sentiment
Auto Trait Implementations§
impl RefUnwindSafe for GoogleCloudDialogflowV2Sentiment
impl Send for GoogleCloudDialogflowV2Sentiment
impl Sync for GoogleCloudDialogflowV2Sentiment
impl Unpin for GoogleCloudDialogflowV2Sentiment
impl UnwindSafe for GoogleCloudDialogflowV2Sentiment
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