pub struct ConfigLoadError {
pub kind: ConfigErrorKind,
pub file_path: PathBuf,
pub document_index: Option<usize>,
pub field: Option<String>,
pub location: Option<ConfigErrorLocation>,
pub message: String,
}Fields§
§kind: ConfigErrorKind§file_path: PathBuf§document_index: Option<usize>§field: Option<String>§location: Option<ConfigErrorLocation>§message: StringImplementations§
Source§impl ConfigLoadError
impl ConfigLoadError
pub fn io(file_path: PathBuf, message: impl Into<String>) -> Self
pub fn parse( file_path: PathBuf, message: impl Into<String>, location: Option<ConfigErrorLocation>, ) -> Self
pub fn validation( file_path: PathBuf, document_index: usize, field: impl Into<String>, message: impl Into<String>, ) -> Self
pub fn validation_root( file_path: PathBuf, field: impl Into<String>, message: impl Into<String>, ) -> Self
Trait Implementations§
Source§impl Clone for ConfigLoadError
impl Clone for ConfigLoadError
Source§fn clone(&self) -> ConfigLoadError
fn clone(&self) -> ConfigLoadError
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 ConfigLoadError
impl Debug for ConfigLoadError
Source§impl Display for ConfigLoadError
impl Display for ConfigLoadError
Source§impl Error for ConfigLoadError
impl Error for ConfigLoadError
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 ConfigLoadError
impl PartialEq for ConfigLoadError
Source§impl Serialize for ConfigLoadError
impl Serialize for ConfigLoadError
impl Eq for ConfigLoadError
impl StructuralPartialEq for ConfigLoadError
Auto Trait Implementations§
impl Freeze for ConfigLoadError
impl RefUnwindSafe for ConfigLoadError
impl Send for ConfigLoadError
impl Sync for ConfigLoadError
impl Unpin for ConfigLoadError
impl UnsafeUnpin for ConfigLoadError
impl UnwindSafe for ConfigLoadError
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.