pub enum ResolverError {
NotConfigured {
raw: String,
},
UrlNotSupported {
raw: String,
},
EscapesRoot {
attempted: PathBuf,
root: PathBuf,
},
Io {
path: PathBuf,
message: String,
},
InvalidJson {
path: PathBuf,
message: String,
},
}Variants§
NotConfigured
The current resolver does not handle external $refs. The default
parse_str entry uses a no-op resolver; users who want external
refs should call parse_path.
UrlNotSupported
URL refs (http://, https://, …) — deferred behind a
follow-up issue.
EscapesRoot
The path canonicalised outside the allowed root.
Io
Filesystem error during load.
InvalidJson
JSON parse error from the loaded file.
Trait Implementations§
Source§impl Debug for ResolverError
impl Debug for ResolverError
Auto Trait Implementations§
impl Freeze for ResolverError
impl RefUnwindSafe for ResolverError
impl Send for ResolverError
impl Sync for ResolverError
impl Unpin for ResolverError
impl UnsafeUnpin for ResolverError
impl UnwindSafe for ResolverError
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