Enum json_ld_core::object::InvalidExpandedJson
source · pub enum InvalidExpandedJson<M> {
InvalidObject,
InvalidList,
InvalidIndex,
InvalidId,
InvalidValueType,
InvalidLiteral,
InvalidLanguage,
InvalidDirection,
NotExpanded,
UnexpectedEntry,
DuplicateKey(Meta<Key, M>),
Unexpected(Kind, Kind),
}
Expand description
Invalid expanded JSON object error.
This can be raised when trying to directly convert a JSON value into an expanded JSON-LD object without using the expansion algorithm.
Variants§
InvalidObject
InvalidList
InvalidIndex
InvalidId
InvalidValueType
InvalidLiteral
InvalidLanguage
InvalidDirection
NotExpanded
UnexpectedEntry
DuplicateKey(Meta<Key, M>)
Unexpected(Kind, Kind)
Implementations§
source§impl<M> InvalidExpandedJson<M>
impl<M> InvalidExpandedJson<M>
pub fn duplicate_key( json_syntax::object::Duplicate: Duplicate<Entry<M>> ) -> Meta<Self, M>
Trait Implementations§
Auto Trait Implementations§
impl<M> RefUnwindSafe for InvalidExpandedJson<M>where M: RefUnwindSafe,
impl<M> Send for InvalidExpandedJson<M>where M: Send,
impl<M> Sync for InvalidExpandedJson<M>where M: Sync,
impl<M> Unpin for InvalidExpandedJson<M>where M: Unpin,
impl<M> UnwindSafe for InvalidExpandedJson<M>where M: UnwindSafe,
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