Struct smart_config::ParseError
source · pub struct ParseError { /* private fields */ }
Expand description
Config parameter deserialization errors.
Implementations§
source§impl ParseError
impl ParseError
sourcepub fn origin(&self) -> &ValueOrigin
pub fn origin(&self) -> &ValueOrigin
Returns an origin of the value deserialization of which failed.
sourcepub fn validation(&self) -> Option<&str>
pub fn validation(&self) -> Option<&str>
Returns human-readable description of the failed validation, if the error is caused by one.
sourcepub fn config(&self) -> &'static ConfigMetadata
pub fn config(&self) -> &'static ConfigMetadata
Returns metadata for the failing config.
sourcepub fn param(&self) -> Option<&'static ParamMetadata>
pub fn param(&self) -> Option<&'static ParamMetadata>
Returns metadata for the failing parameter if this error concerns a parameter. The parameter
is guaranteed to be contained in Self::config()
.
Trait Implementations§
source§impl Debug for ParseError
impl Debug for ParseError
source§impl Display for ParseError
impl Display for ParseError
source§impl Error for ParseError
impl Error for ParseError
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 FromIterator<ParseError> for Result<(), ParseErrors>
impl FromIterator<ParseError> for Result<(), ParseErrors>
source§fn from_iter<I: IntoIterator<Item = ParseError>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = ParseError>>(iter: I) -> Self
Creates a value from an iterator. Read more
Auto Trait Implementations§
impl Freeze for ParseError
impl !RefUnwindSafe for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Unpin for ParseError
impl !UnwindSafe for ParseError
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