pub struct ExpressionChange {
pub expression: String,
pub bubble_text: Option<String>,
}Expand description
Describes the expression the pet should display, as emitted by the ExpressionStateMachine. Travels from mur-agent-runtime → Hub via IPC.
Fields§
§expression: StringName of the expression (e.g. "idle", "smile", "error").
bubble_text: Option<String>Text to show in the speech bubble, if any.
Trait Implementations§
Source§impl Clone for ExpressionChange
impl Clone for ExpressionChange
Source§fn clone(&self) -> ExpressionChange
fn clone(&self) -> ExpressionChange
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 ExpressionChange
impl Debug for ExpressionChange
Source§impl<'de> Deserialize<'de> for ExpressionChange
impl<'de> Deserialize<'de> for ExpressionChange
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 ExpressionChange
impl RefUnwindSafe for ExpressionChange
impl Send for ExpressionChange
impl Sync for ExpressionChange
impl Unpin for ExpressionChange
impl UnsafeUnpin for ExpressionChange
impl UnwindSafe for ExpressionChange
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