pub enum MapperError {
ParseError(String),
SerializeError(String),
IoError(Error),
ConversionError(String),
MissingField(String),
}Expand description
Error type for mapping operations
Variants§
ParseError(String)
Error during parsing
SerializeError(String)
Error during serialization
IoError(Error)
Error during file I/O
ConversionError(String)
Error during value conversion
MissingField(String)
Error when a required field is missing
Trait Implementations§
Source§impl Debug for MapperError
impl Debug for MapperError
Source§impl Display for MapperError
impl Display for MapperError
Source§impl Error for MapperError
impl Error for MapperError
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 From<ConfError> for MapperError
impl From<ConfError> for MapperError
Auto Trait Implementations§
impl !RefUnwindSafe for MapperError
impl !UnwindSafe for MapperError
impl Freeze for MapperError
impl Send for MapperError
impl Sync for MapperError
impl Unpin for MapperError
impl UnsafeUnpin for MapperError
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