pub struct InvalidConfigFile {
pub path: String,
pub is_global: bool,
pub backup_searched: bool,
pub backup_path: Option<String>,
}Expand description
ResultMessage::invalid_config_file: a config file that is not valid
JSON, and its backup (CLI 2.1.325+).
Fields§
§path: StringThe file that is not valid JSON.
is_global: boolWhether this is Claude Code’s global config file. Only that file has backups, and only its message says how to repair it.
backup_searched: boolWhether Claude Code knows the result of its search for a backup.
true with no backup_path: it found none.
false: the result is not known, or this is not the global config.
backup_path: Option<String>The backup that the message in errors names. Usually one that
parses; where none does, the newest with an account, then the newest
holding anything, or at last one that does not parse or could not be
read. Show it to a person, or check that it parses before copying it
over path.
Trait Implementations§
Source§impl Clone for InvalidConfigFile
impl Clone for InvalidConfigFile
Source§impl Debug for InvalidConfigFile
impl Debug for InvalidConfigFile
Source§impl<'de> Deserialize<'de> for InvalidConfigFile
impl<'de> Deserialize<'de> for InvalidConfigFile
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 Eq for InvalidConfigFile
Source§impl PartialEq for InvalidConfigFile
impl PartialEq for InvalidConfigFile
Source§impl Serialize for InvalidConfigFile
impl Serialize for InvalidConfigFile
impl StructuralPartialEq for InvalidConfigFile
Auto Trait Implementations§
impl Forget for InvalidConfigFile
impl Freeze for InvalidConfigFile
impl Move for InvalidConfigFile
impl RefUnwindSafe for InvalidConfigFile
impl Send for InvalidConfigFile
impl Sync for InvalidConfigFile
impl Unpin for InvalidConfigFile
impl UnsafeUnpin for InvalidConfigFile
impl UnwindSafe for InvalidConfigFile
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