pub enum JsonSchemaParseError {
Serde(Error),
UnknownField {
key: String,
path: String,
},
Io(Error),
}Expand description
Error when parsing a JSON Schema with the given settings.
Variants§
Serde(Error)
JSON or serde error (invalid JSON, wrong types, etc.).
UnknownField
An unknown key was present and strict ingestion was enabled.
Fields
Io(Error)
I/O error when reading from a reader or file.
Trait Implementations§
Source§impl Debug for JsonSchemaParseError
impl Debug for JsonSchemaParseError
Source§impl Display for JsonSchemaParseError
impl Display for JsonSchemaParseError
Source§impl Error for JsonSchemaParseError
impl Error for JsonSchemaParseError
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<Error> for JsonSchemaParseError
impl From<Error> for JsonSchemaParseError
Auto Trait Implementations§
impl Freeze for JsonSchemaParseError
impl !RefUnwindSafe for JsonSchemaParseError
impl Send for JsonSchemaParseError
impl Sync for JsonSchemaParseError
impl Unpin for JsonSchemaParseError
impl UnsafeUnpin for JsonSchemaParseError
impl !UnwindSafe for JsonSchemaParseError
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