pub enum ConfigExtractionError {
UnsupportedArtifact,
InputTooLarge {
actual: usize,
maximum: usize,
},
DepthLimitExceeded {
line: usize,
maximum: usize,
},
KeyLimitExceeded {
maximum: usize,
},
KeyTooLong {
line: usize,
maximum: usize,
},
Malformed {
artifact_kind: ConfigArtifactKind,
line: usize,
column: usize,
},
}Expand description
Value-free failure returned by secret-safe configuration extraction.
Variants§
UnsupportedArtifact
The source path does not identify a supported configuration format.
InputTooLarge
Input exceeds the fixed extraction budget.
DepthLimitExceeded
Nesting exceeds the fixed extraction budget.
Fields
KeyLimitExceeded
The document contains more unique keys than the fixed extraction budget.
KeyTooLong
A key name exceeds the fixed extraction budget.
Fields
Malformed
The input is malformed; source content is intentionally omitted.
Trait Implementations§
Source§impl Clone for ConfigExtractionError
impl Clone for ConfigExtractionError
Source§fn clone(&self) -> ConfigExtractionError
fn clone(&self) -> ConfigExtractionError
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 ConfigExtractionError
impl Debug for ConfigExtractionError
Source§impl<'de> Deserialize<'de> for ConfigExtractionError
impl<'de> Deserialize<'de> for ConfigExtractionError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ConfigExtractionError
impl Display for ConfigExtractionError
impl Eq for ConfigExtractionError
Source§impl Error for ConfigExtractionError
impl Error for ConfigExtractionError
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 ConfigExtractionError
impl PartialEq for ConfigExtractionError
Source§impl Serialize for ConfigExtractionError
impl Serialize for ConfigExtractionError
impl StructuralPartialEq for ConfigExtractionError
Auto Trait Implementations§
impl Freeze for ConfigExtractionError
impl RefUnwindSafe for ConfigExtractionError
impl Send for ConfigExtractionError
impl Sync for ConfigExtractionError
impl Unpin for ConfigExtractionError
impl UnsafeUnpin for ConfigExtractionError
impl UnwindSafe for ConfigExtractionError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.