pub enum EnvConfigError {
InvalidField {
field: &'static str,
reason: String,
},
MissingField {
field: &'static str,
},
Environment(Box<CliCoreError>),
}Expand description
An error assembling an EnvConfig struct.
Variants§
InvalidField
A present value failed to convert to the field’s type.
MissingField
No source had a value for this field, and it has no default.
Environment(Box<CliCoreError>)
The underlying environment failed to resolve at all (unknown name,
unreadable/malformed environments.toml).
Trait Implementations§
Source§impl Debug for EnvConfigError
impl Debug for EnvConfigError
Source§impl Display for EnvConfigError
impl Display for EnvConfigError
Source§impl Error for EnvConfigError
impl Error for EnvConfigError
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<CliCoreError> for EnvConfigError
impl From<CliCoreError> for EnvConfigError
Source§fn from(err: CliCoreError) -> Self
fn from(err: CliCoreError) -> Self
Converts to this type from the input type.
Source§impl From<EnvConfigError> for CliCoreError
impl From<EnvConfigError> for CliCoreError
Source§fn from(source: EnvConfigError) -> Self
fn from(source: EnvConfigError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for EnvConfigError
impl !UnwindSafe for EnvConfigError
impl Freeze for EnvConfigError
impl Send for EnvConfigError
impl Sync for EnvConfigError
impl Unpin for EnvConfigError
impl UnsafeUnpin for EnvConfigError
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