#[non_exhaustive]pub struct Spellcheck {
pub enabled: Option<bool>,
pub checker: Option<SpellChecker>,
pub language: Option<String>,
pub color: Option<String>,
pub extra: Extra,
}Expand description
spellcheck.
Underline misspelled words in the prompt input as you type, using a spell checker you install. Claude Code checks only the text in the input box.
Docs: spellcheck.
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>§checker: Option<SpellChecker>The spellchecker to run.
- Values:
"aspell","hunspell","ispell", or"auto"for the first of those found onPATH - Default:
"auto"
Docs: checker.
language: Option<String>The dictionary, passed to the checker as its dictionary name, such as en_GB.
- Values: string
- Default: unset
Docs: language.
color: Option<String>The color that marks a misspelled word.
- Values: string: a terminal color name,
#rrggbb,rgb(r,g,b),ansi256(n), oransi:<name> - Default: unset
Docs: color.
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 Clone for Spellcheck
impl Clone for Spellcheck
Source§impl Debug for Spellcheck
impl Debug for Spellcheck
Source§impl Default for Spellcheck
impl Default for Spellcheck
Source§impl<'de> Deserialize<'de> for Spellcheck
impl<'de> Deserialize<'de> for Spellcheck
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 Spellcheck
impl PartialEq for Spellcheck
Source§impl Serialize for Spellcheck
impl Serialize for Spellcheck
impl StructuralPartialEq for Spellcheck
Auto Trait Implementations§
impl Forget for Spellcheck
impl Freeze for Spellcheck
impl Move for Spellcheck
impl RefUnwindSafe for Spellcheck
impl Send for Spellcheck
impl Sync for Spellcheck
impl Unpin for Spellcheck
impl UnsafeUnpin for Spellcheck
impl UnwindSafe for Spellcheck
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