pub struct ExpressionLibPreset {
pub name: String,
pub description: String,
pub weights: HashMap<String, f32>,
pub intensity: f32,
pub tags: Vec<String>,
}Expand description
A named facial expression preset: a set of morph target weights.
Fields§
§name: StringUnique expression name (e.g. “smile”, “anger”).
description: StringHuman-readable description.
weights: HashMap<String, f32>Morph target name → base weight [0..1].
intensity: f32Global intensity scale [0..1] applied on top of individual weights.
Semantic tags, e.g. ["happy", "positive", "mouth"].
Implementations§
Trait Implementations§
Source§impl Clone for ExpressionPreset
impl Clone for ExpressionPreset
Source§fn clone(&self) -> ExpressionPreset
fn clone(&self) -> ExpressionPreset
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ExpressionPreset
impl RefUnwindSafe for ExpressionPreset
impl Send for ExpressionPreset
impl Sync for ExpressionPreset
impl Unpin for ExpressionPreset
impl UnsafeUnpin for ExpressionPreset
impl UnwindSafe for ExpressionPreset
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more