pub enum SecretConfigError {
EmptyEnvVar {
secret_index: usize,
},
EnvVarContainsEquals {
secret_index: usize,
},
EnvVarContainsNul {
secret_index: usize,
},
MissingAllowedHosts {
secret_index: usize,
},
EmptyPlaceholder {
secret_index: usize,
},
PlaceholderTooLong {
secret_index: usize,
actual_bytes: usize,
max_bytes: usize,
},
PlaceholderContainsNul {
secret_index: usize,
},
PlaceholderContainsLineBreak {
secret_index: usize,
},
}Expand description
Invalid secret configuration.
Variants§
EmptyEnvVar
The environment variable name is empty.
EnvVarContainsEquals
The environment variable name contains =.
EnvVarContainsNul
The environment variable name contains NUL.
MissingAllowedHosts
No allowed hosts were configured for a secret.
EmptyPlaceholder
The placeholder is empty.
PlaceholderTooLong
The placeholder exceeds the supported byte length.
Fields
PlaceholderContainsNul
The placeholder contains NUL.
PlaceholderContainsLineBreak
The placeholder contains a line break.
Trait Implementations§
Source§impl Clone for SecretConfigError
impl Clone for SecretConfigError
Source§fn clone(&self) -> SecretConfigError
fn clone(&self) -> SecretConfigError
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 SecretConfigError
impl Debug for SecretConfigError
Source§impl Display for SecretConfigError
impl Display for SecretConfigError
impl Eq for SecretConfigError
Source§impl Error for SecretConfigError
impl Error for SecretConfigError
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 From<SecretConfigError> for BuildError
impl From<SecretConfigError> for BuildError
Source§fn from(source: SecretConfigError) -> Self
fn from(source: SecretConfigError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SecretConfigError
impl PartialEq for SecretConfigError
Source§fn eq(&self, other: &SecretConfigError) -> bool
fn eq(&self, other: &SecretConfigError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SecretConfigError
Auto Trait Implementations§
impl Freeze for SecretConfigError
impl RefUnwindSafe for SecretConfigError
impl Send for SecretConfigError
impl Sync for SecretConfigError
impl Unpin for SecretConfigError
impl UnsafeUnpin for SecretConfigError
impl UnwindSafe for SecretConfigError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.