pub struct AffectContent {
pub text: String,
pub valence: f64,
pub arousal: f64,
pub dominance: f64,
pub emotions: Vec<String>,
}Expand description
Affect-carrying message content with VAD (Valence-Arousal-Dominance) scores.
Fields§
§text: StringThe primary text representation.
valence: f64Emotional valence: -1.0 (negative) to 1.0 (positive).
arousal: f64Emotional arousal: 0.0 (calm) to 1.0 (excited).
dominance: f64Emotional dominance: 0.0 (submissive) to 1.0 (dominant).
emotions: Vec<String>Named emotions present in the content.
Trait Implementations§
Source§impl Clone for AffectContent
impl Clone for AffectContent
Source§fn clone(&self) -> AffectContent
fn clone(&self) -> AffectContent
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 AffectContent
impl Debug for AffectContent
Source§impl<'de> Deserialize<'de> for AffectContent
impl<'de> Deserialize<'de> for AffectContent
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 AffectContent
impl PartialEq for AffectContent
Source§impl Serialize for AffectContent
impl Serialize for AffectContent
impl StructuralPartialEq for AffectContent
Auto Trait Implementations§
impl Freeze for AffectContent
impl RefUnwindSafe for AffectContent
impl Send for AffectContent
impl Sync for AffectContent
impl Unpin for AffectContent
impl UnsafeUnpin for AffectContent
impl UnwindSafe for AffectContent
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