pub struct EmotionState {
pub name: String,
pub intensity: f32,
}Expand description
A single emotion state.
Fields§
§name: StringEmotion name.
intensity: f32Intensity in 0.0..=1.0.
Trait Implementations§
Source§impl Clone for EmotionState
impl Clone for EmotionState
Source§fn clone(&self) -> EmotionState
fn clone(&self) -> EmotionState
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 EmotionState
impl Debug for EmotionState
Source§impl<'de> Deserialize<'de> for EmotionState
impl<'de> Deserialize<'de> for EmotionState
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 EmotionState
impl PartialEq for EmotionState
Source§impl Serialize for EmotionState
impl Serialize for EmotionState
impl StructuralPartialEq for EmotionState
Auto Trait Implementations§
impl Freeze for EmotionState
impl RefUnwindSafe for EmotionState
impl Send for EmotionState
impl Sync for EmotionState
impl Unpin for EmotionState
impl UnsafeUnpin for EmotionState
impl UnwindSafe for EmotionState
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