pub enum SubstitutionError {
VariableNotFound {
var_name: String,
location: String,
},
VariableRejected {
var_name: String,
reason: String,
policy: String,
},
InvalidSubstitutionSyntax {
value: String,
reason: String,
},
}Expand description
Error type for environment variable substitution failures.
Variants§
VariableNotFound
A referenced environment variable does not exist in the process environment.
Fields
VariableRejected
A variable was found but rejected by the active substitution policy.
Fields
InvalidSubstitutionSyntax
The substitution syntax in the config value is malformed.
Trait Implementations§
Source§impl Clone for SubstitutionError
impl Clone for SubstitutionError
Source§impl Debug for SubstitutionError
impl Debug for SubstitutionError
Source§impl Display for SubstitutionError
impl Display for SubstitutionError
Source§impl Error for SubstitutionError
impl Error for SubstitutionError
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()
Source§impl PartialEq for SubstitutionError
impl PartialEq for SubstitutionError
impl StructuralPartialEq for SubstitutionError
Auto Trait Implementations§
impl Forget for SubstitutionError
impl Freeze for SubstitutionError
impl RefUnwindSafe for SubstitutionError
impl Send for SubstitutionError
impl Sync for SubstitutionError
impl Unpin for SubstitutionError
impl UnsafeUnpin for SubstitutionError
impl UnwindSafe for SubstitutionError
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