pub struct SchemaCompilationSource(/* private fields */);Expand description
The original serde_json/jsonschema error message behind a
MifSchemaError::SchemaCompilation failure.
serde_json::Error and jsonschema’s build/registry errors are
stringified before being cached (see build_registry/build_validator),
so this wrapper is what #[source] actually points at: it preserves the
original error’s message so std::error::Error::source() on
SchemaCompilation yields a real hop in the chain instead of None.
This wrapper’s own source() returns None — the original typed error
itself could not be preserved through the cache.
Trait Implementations§
Source§impl Debug for SchemaCompilationSource
impl Debug for SchemaCompilationSource
Source§impl Display for SchemaCompilationSource
impl Display for SchemaCompilationSource
Source§impl Error for SchemaCompilationSource
impl Error for SchemaCompilationSource
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()
Auto Trait Implementations§
impl Freeze for SchemaCompilationSource
impl RefUnwindSafe for SchemaCompilationSource
impl Send for SchemaCompilationSource
impl Sync for SchemaCompilationSource
impl Unpin for SchemaCompilationSource
impl UnsafeUnpin for SchemaCompilationSource
impl UnwindSafe for SchemaCompilationSource
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