pub struct AffectHistoryEntry {
pub timestamp: u64,
pub emotion: String,
pub intensity: f64,
pub valence: f64,
pub arousal: f64,
pub dominance: f64,
pub source: String,
}Expand description
A single entry in an agent’s affect history.
Fields§
§timestamp: u64When the affect change happened (epoch seconds).
emotion: StringThe emotion label.
intensity: f64The intensity at this point.
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).
source: StringSource of the change: “contagion”, “direct”, “decay”.
Trait Implementations§
Source§impl Clone for AffectHistoryEntry
impl Clone for AffectHistoryEntry
Source§fn clone(&self) -> AffectHistoryEntry
fn clone(&self) -> AffectHistoryEntry
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 AffectHistoryEntry
impl Debug for AffectHistoryEntry
Source§impl<'de> Deserialize<'de> for AffectHistoryEntry
impl<'de> Deserialize<'de> for AffectHistoryEntry
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 AffectHistoryEntry
impl RefUnwindSafe for AffectHistoryEntry
impl Send for AffectHistoryEntry
impl Sync for AffectHistoryEntry
impl Unpin for AffectHistoryEntry
impl UnsafeUnpin for AffectHistoryEntry
impl UnwindSafe for AffectHistoryEntry
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