combs_mesh/blocks/emotion.rs
1//! `emo` — emotion states with intensities.
2
3use serde::{Deserialize, Serialize};
4
5/// Emotion block.
6#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
7pub struct EmotionBlock {
8 /// The emotion states.
9 #[serde(default)]
10 pub states: Vec<EmotionState>,
11}
12
13/// A single emotion state.
14#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
15pub struct EmotionState {
16 /// Emotion name.
17 pub name: String,
18 /// Intensity in 0.0..=1.0.
19 pub intensity: f32,
20}