pub struct ParseError {
pub module: String,
pub message: String,
}Expand description
Defines a ParseError.
ParseError is a wrapper around several different kinds of sub-errors that may occur. The goal
is to give the user what they need without overburdening them with match statements.
Examples
use yaml_config::error::ParseError;
let error = ParseError { module: "some_mod".to_string(), message: "something broke!".to_string() };Fields§
§module: String§message: StringTrait Implementations§
Source§impl Debug for ParseError
impl Debug for ParseError
Source§impl Display for ParseError
impl Display for ParseError
Source§impl From<Error> for ParseError
impl From<Error> for ParseError
Source§impl From<ScanError> for ParseError
impl From<ScanError> for ParseError
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