pub struct ConfigValidationError {
pub field: String,
pub message: String,
}Expand description
Error for invalid configuration values
Fields§
§field: String§message: StringTrait 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
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()
Source§impl From<ConfigValidationError> for AppCode
impl From<ConfigValidationError> for AppCode
Source§fn from(value: ConfigValidationError) -> Self
fn from(value: ConfigValidationError) -> Self
Converts to this type from the input type.
Source§impl From<ConfigValidationError> for AppError
impl From<ConfigValidationError> for AppError
Source§fn from(value: ConfigValidationError) -> Self
fn from(value: ConfigValidationError) -> Self
Converts to this type from the input type.
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