pub struct AffectState {
pub valence: f64,
pub arousal: f64,
pub dominance: f64,
pub emotions: Vec<Emotion>,
pub urgency: UrgencyLevel,
pub meta_confidence: f64,
}Expand description
Emotional/affect state for communication context.
Fields§
§valence: f64Valence: -1.0 (negative) to 1.0 (positive).
arousal: f64Arousal: 0.0 (calm) to 1.0 (excited).
dominance: f64Dominance: 0.0 (submissive) to 1.0 (dominant).
emotions: Vec<Emotion>Named emotions present.
urgency: UrgencyLevelUrgency level.
meta_confidence: f64Meta-confidence: how confident the agent is in this affect reading.
Trait Implementations§
Source§impl Clone for AffectState
impl Clone for AffectState
Source§fn clone(&self) -> AffectState
fn clone(&self) -> AffectState
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 AffectState
impl Debug for AffectState
Source§impl Default for AffectState
impl Default for AffectState
Source§impl<'de> Deserialize<'de> for AffectState
impl<'de> Deserialize<'de> for AffectState
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
Auto Trait Implementations§
impl Freeze for AffectState
impl RefUnwindSafe for AffectState
impl Send for AffectState
impl Sync for AffectState
impl Unpin for AffectState
impl UnsafeUnpin for AffectState
impl UnwindSafe for AffectState
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