pub struct VoiceCommand {
pub triggers: Vec<String>,
pub tool: String,
pub params: Value,
pub confirm: bool,
pub description: String,
}Expand description
A voice command shortcut that maps a spoken phrase to a tool invocation.
Fields§
§triggers: Vec<String>Trigger phrases (any of these activates the command). Matched after STT, case-insensitive, with fuzzy tolerance.
tool: StringTool name to invoke.
params: ValueStatic parameters to pass to the tool.
confirm: boolWhether this command requires voice confirmation before executing.
description: StringHuman-readable description (for help listing).
Trait Implementations§
Source§impl Clone for VoiceCommand
impl Clone for VoiceCommand
Source§fn clone(&self) -> VoiceCommand
fn clone(&self) -> VoiceCommand
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 moreSource§impl Debug for VoiceCommand
impl Debug for VoiceCommand
Source§impl<'de> Deserialize<'de> for VoiceCommand
impl<'de> Deserialize<'de> for VoiceCommand
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 VoiceCommand
impl RefUnwindSafe for VoiceCommand
impl Send for VoiceCommand
impl Sync for VoiceCommand
impl Unpin for VoiceCommand
impl UnsafeUnpin for VoiceCommand
impl UnwindSafe for VoiceCommand
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