pub struct SentimentAnalysis {
pub status: String,
pub average_sentiment: Option<f64>,
pub average_categorical_sentiment: Option<SentimentCategory>,
pub common_emotion: Option<String>,
pub emotion_breakdown: Option<HashMap<String, f64>>,
}Expand description
SentimentAnalysis : Sentiment analysis results for a call
Fields§
§status: StringStatus of the sentiment analysis job
average_sentiment: Option<f64>Average sentiment score across the entire call (0-1, where 1 is most positive)
average_categorical_sentiment: Option<SentimentCategory>§common_emotion: Option<String>Most frequently detected emotion throughout the call
emotion_breakdown: Option<HashMap<String, f64>>Detailed breakdown of emotions detected with their frequencies
Implementations§
Source§impl SentimentAnalysis
impl SentimentAnalysis
Sourcepub fn new(status: String) -> SentimentAnalysis
pub fn new(status: String) -> SentimentAnalysis
Sentiment analysis results for a call
Trait Implementations§
Source§impl Clone for SentimentAnalysis
impl Clone for SentimentAnalysis
Source§fn clone(&self) -> SentimentAnalysis
fn clone(&self) -> SentimentAnalysis
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SentimentAnalysis
impl Debug for SentimentAnalysis
Source§impl Default for SentimentAnalysis
impl Default for SentimentAnalysis
Source§fn default() -> SentimentAnalysis
fn default() -> SentimentAnalysis
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SentimentAnalysis
impl<'de> Deserialize<'de> for SentimentAnalysis
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 PartialEq for SentimentAnalysis
impl PartialEq for SentimentAnalysis
Source§fn eq(&self, other: &SentimentAnalysis) -> bool
fn eq(&self, other: &SentimentAnalysis) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SentimentAnalysis
impl Serialize for SentimentAnalysis
impl StructuralPartialEq for SentimentAnalysis
Auto Trait Implementations§
impl Freeze for SentimentAnalysis
impl RefUnwindSafe for SentimentAnalysis
impl Send for SentimentAnalysis
impl Sync for SentimentAnalysis
impl Unpin for SentimentAnalysis
impl UnsafeUnpin for SentimentAnalysis
impl UnwindSafe for SentimentAnalysis
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