Enum json_ld::ExtractContextError
source · pub enum ExtractContextError {
Unexpected(Kind),
NoContext,
DuplicateContext,
Syntax(InvalidContext),
}
Expand description
Context extraction error.
Variants§
Unexpected(Kind)
Unexpected JSON value.
NoContext
No context definition found.
DuplicateContext
Multiple context definitions found.
Syntax(InvalidContext)
JSON syntax error.
Trait Implementations§
source§impl Debug for ExtractContextError
impl Debug for ExtractContextError
source§impl Display for ExtractContextError
impl Display for ExtractContextError
source§impl Error for ExtractContextError
impl Error for ExtractContextError
1.30.0 · 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()
source§impl<E> From<ExtractContextError> for ContextLoadError<E>
impl<E> From<ExtractContextError> for ContextLoadError<E>
source§fn from(source: ExtractContextError) -> ContextLoadError<E>
fn from(source: ExtractContextError) -> ContextLoadError<E>
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ExtractContextError
impl RefUnwindSafe for ExtractContextError
impl Send for ExtractContextError
impl Sync for ExtractContextError
impl Unpin for ExtractContextError
impl UnwindSafe for ExtractContextError
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