pub enum ConfigValidationError {
InvalidLogLevel {
value: String,
reason: String,
},
InvalidFileLogLevel {
value: String,
reason: String,
},
ExpectedBoolean {
value: String,
},
}Expand description
Errors raised while validating config values.
InvalidValue in ConfigError is reserved for raw values that fail to
parse or normalize, while Validation means the key-specific validator
rejected a value that was otherwise structurally valid.
Variants§
InvalidLogLevel
core.log_level is parsed by tracing_subscriber::EnvFilter, so the
original parser reason is preserved in the error.
InvalidFileLogLevel
core.file_log_level is parsed by tracing_subscriber::EnvFilter, so
the original parser reason is preserved in the error.
ExpectedBoolean
Trait Implementations§
Source§impl Debug for ConfigValidationError
impl Debug for ConfigValidationError
Source§impl Display for ConfigValidationError
impl Display for ConfigValidationError
Source§impl Error for ConfigValidationError
impl Error for ConfigValidationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for ConfigValidationError
impl RefUnwindSafe for ConfigValidationError
impl Send for ConfigValidationError
impl Sync for ConfigValidationError
impl Unpin for ConfigValidationError
impl UnwindSafe for ConfigValidationError
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