Enum format_serde_error::ErrorTypes [−][src]
pub enum ErrorTypes { Json(Error), Yaml(Error), Custom { error: Box<dyn Error>, line: Option<usize>, column: Option<usize>, }, }
Expand description
Contains the error that will be used by SerdeError
to format the output.
For this to work the error needs to support emitting the line and column of
the error. We are implementing Into
for some common types. If a error
type is not implemented yet the ErrorTypes::Custom
can be used instead.
Variants
Json(Error)
Contains serde_json::Error
.
Yaml(Error)
Contains serde_yaml::Error
.
Used for custom errors that don’t come from serde_yaml or serde_json.
Show fields
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ErrorTypes
impl !Send for ErrorTypes
impl !Sync for ErrorTypes
impl Unpin for ErrorTypes
impl !UnwindSafe for ErrorTypes