#[non_exhaustive]pub struct Voice {
pub enabled: Option<bool>,
pub mode: Option<VoiceMode>,
pub auto_submit: Option<bool>,
pub extra: Extra,
}Expand description
voice.
Turn on voice dictation and choose how
the dictation key behaves. Claude Code writes this object for you when you run /voice.
Docs: voice.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.enabled: Option<bool>§mode: Option<VoiceMode>Recording mode: “hold” (default) is push-to-talk; “tap” taps once to start and again to stop and submit.
- Values:
"hold","tap" - Default: unset
Docs: mode.
auto_submit: Option<bool>In hold mode, auto-submit the prompt on key release when the transcript is at least three words long.
- Values: Boolean
- Default: unset
Docs: autoSubmit.
extra: ExtraKeys Claude Code accepts here that this crate doesn’t model (newer or undocumented ones), kept as written so the document round-trips.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Voice
impl<'de> Deserialize<'de> for Voice
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
impl StructuralPartialEq for Voice
Auto Trait Implementations§
impl Forget for Voice
impl Freeze for Voice
impl Move for Voice
impl RefUnwindSafe for Voice
impl Send for Voice
impl Sync for Voice
impl Unpin for Voice
impl UnsafeUnpin for Voice
impl UnwindSafe for Voice
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