Enum json_schema_diff::Error
source · pub enum Error {
JsonRef(Box<Error>),
Serde(Error),
}
Expand description
The errors that can happen in this crate.
Variants§
JsonRef(Box<Error>)
Failed to resolve references upfront.
We invoke the jsonref
crate upfront to flatten out the schema. Any errors during that
stage end up here.
Serde(Error)
Failed to parse the JSON schema.
Any deserialization errors from serde that happen while converting the value into our AST end up here.
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere T: Error + 'static,
§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.