pub struct ConfigKeyUnresolvedError {
pub key: String,
pub env: String,
pub tried_tiers: Vec<ConfigTier>,
}Expand description
Returned by a required-key read (SecretConfigAccessor::get / get_sync
and the public/flag analogs) in container mode when the value resolves to
absent across every active tier. This is the exact class that closes the
silent-absent-value hole (SMOODEV-1478 / SMOODEV-1135).
Optional keys (declared via InitContainerConfigOptions::optional_keys)
do NOT produce this — they resolve to Ok(None).
Parity: TS ConfigKeyUnresolvedError { key, env, triedTiers }.
Fields§
§key: StringThe camelCase config key that could not be resolved.
env: StringThe environment the read targeted (e.g. production).
tried_tiers: Vec<ConfigTier>The tiers that were consulted, in order, before giving up
(container mode tries ["env", "http"]).
Trait Implementations§
Source§impl Clone for ConfigKeyUnresolvedError
impl Clone for ConfigKeyUnresolvedError
Source§fn clone(&self) -> ConfigKeyUnresolvedError
fn clone(&self) -> ConfigKeyUnresolvedError
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 ConfigKeyUnresolvedError
impl Debug for ConfigKeyUnresolvedError
Source§impl Display for ConfigKeyUnresolvedError
impl Display for ConfigKeyUnresolvedError
Source§impl Error for ConfigKeyUnresolvedError
impl Error for ConfigKeyUnresolvedError
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<ConfigKeyUnresolvedError> for ConfigError
impl From<ConfigKeyUnresolvedError> for ConfigError
Source§fn from(e: ConfigKeyUnresolvedError) -> Self
fn from(e: ConfigKeyUnresolvedError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ConfigKeyUnresolvedError
impl PartialEq for ConfigKeyUnresolvedError
Source§fn eq(&self, other: &ConfigKeyUnresolvedError) -> bool
fn eq(&self, other: &ConfigKeyUnresolvedError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ConfigKeyUnresolvedError
impl StructuralPartialEq for ConfigKeyUnresolvedError
Auto Trait Implementations§
impl Freeze for ConfigKeyUnresolvedError
impl RefUnwindSafe for ConfigKeyUnresolvedError
impl Send for ConfigKeyUnresolvedError
impl Sync for ConfigKeyUnresolvedError
impl Unpin for ConfigKeyUnresolvedError
impl UnsafeUnpin for ConfigKeyUnresolvedError
impl UnwindSafe for ConfigKeyUnresolvedError
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
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§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.