#[non_exhaustive]pub enum DogsConfigError {
Toml(Error),
}Expand description
Why dogs.toml could not be read
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Trait Implementations§
Source§impl Debug for DogsConfigError
Manual, not derived (IR-41): toml::de::Error’s own Debug forwards to
toml_edit::TomlError, which keeps the ENTIRE source document in a raw
field so Display can quote a line of context. A derived Debug here
prints all of it, and this is the one type in the workspace whose source
document is dogs.toml – the file docs/dogs.md tells an operator to
paste a Discord or Slack webhook URL into. Measured against toml
0.8.23: a derived Debug emitted the whole file, webhook and all, five
lines below the redacted Debug DogsConfig carries for the same
secret.
impl Debug for DogsConfigError
Manual, not derived (IR-41): toml::de::Error’s own Debug forwards to
toml_edit::TomlError, which keeps the ENTIRE source document in a raw
field so Display can quote a line of context. A derived Debug here
prints all of it, and this is the one type in the workspace whose source
document is dogs.toml – the file docs/dogs.md tells an operator to
paste a Discord or Slack webhook URL into. Measured against toml
0.8.23: a derived Debug emitted the whole file, webhook and all, five
lines below the redacted Debug DogsConfig carries for the same
secret.
The redaction is the parser’s short message(), never the line it
quotes – the same posture, for the same reason, that
ShepTomlError::Parse takes in shep-cli. Display below still shows the
full line-and-column rendering: that is the deliberate surface, meant for
the operator who broke their own file to read. Debug is not that
surface, it is what a log captures.
Source§impl Display for DogsConfigError
impl Display for DogsConfigError
Source§impl Error for DogsConfigError
impl Error for DogsConfigError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()