pub enum EnvVarNameError {
Empty,
StartsWithDigit,
InvalidCharacter,
}Expand description
Validation errors for environment variable names.
Variants§
Empty
The variable name was empty.
StartsWithDigit
The variable name started with an ASCII digit.
InvalidCharacter
The variable name contained an unsupported character.
Trait Implementations§
Source§impl Clone for EnvVarNameError
impl Clone for EnvVarNameError
Source§fn clone(&self) -> EnvVarNameError
fn clone(&self) -> EnvVarNameError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EnvVarNameError
impl Debug for EnvVarNameError
Source§impl Display for EnvVarNameError
impl Display for EnvVarNameError
Source§impl Error for EnvVarNameError
impl Error for EnvVarNameError
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 EnvVarNameError
impl PartialEq for EnvVarNameError
Source§fn eq(&self, other: &EnvVarNameError) -> bool
fn eq(&self, other: &EnvVarNameError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for EnvVarNameError
impl StructuralPartialEq for EnvVarNameError
Auto Trait Implementations§
impl Freeze for EnvVarNameError
impl RefUnwindSafe for EnvVarNameError
impl Send for EnvVarNameError
impl Sync for EnvVarNameError
impl Unpin for EnvVarNameError
impl UnsafeUnpin for EnvVarNameError
impl UnwindSafe for EnvVarNameError
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