pub struct UnknownField {
pub path: String,
pub source: Option<SourceTrace>,
pub suggestion: Option<String>,
}Expand description
Information about an unknown configuration path discovered during loading.
Fields§
§path: StringDot-delimited path that was not recognized.
source: Option<SourceTrace>Most recent source that contributed the unknown path, when known.
suggestion: Option<String>Best-effort suggestion for the intended path.
Implementations§
Source§impl UnknownField
impl UnknownField
Sourcepub fn with_source(self, source: Option<SourceTrace>) -> Self
pub fn with_source(self, source: Option<SourceTrace>) -> Self
Attaches source information.
Sourcepub fn with_suggestion(self, suggestion: Option<String>) -> Self
pub fn with_suggestion(self, suggestion: Option<String>) -> Self
Attaches a best-effort suggestion.
Trait Implementations§
Source§impl Clone for UnknownField
impl Clone for UnknownField
Source§fn clone(&self) -> UnknownField
fn clone(&self) -> UnknownField
Returns a duplicate of the value. Read more
1.0.0 · 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 UnknownField
impl Debug for UnknownField
Source§impl<'de> Deserialize<'de> for UnknownField
impl<'de> Deserialize<'de> for UnknownField
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 UnknownField
impl Display for UnknownField
Source§impl PartialEq for UnknownField
impl PartialEq for UnknownField
Source§impl Serialize for UnknownField
impl Serialize for UnknownField
impl Eq for UnknownField
impl StructuralPartialEq for UnknownField
Auto Trait Implementations§
impl Freeze for UnknownField
impl RefUnwindSafe for UnknownField
impl Send for UnknownField
impl Sync for UnknownField
impl Unpin for UnknownField
impl UnsafeUnpin for UnknownField
impl UnwindSafe for UnknownField
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.