pub enum InvalidExpandedJson {
InvalidObject,
InvalidList,
InvalidIndex,
InvalidId,
InvalidValueType,
InvalidLiteral,
InvalidLanguage,
InvalidDirection,
NotExpanded,
UnexpectedEntry,
DuplicateKey(Key),
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(Key)
Unexpected(Kind, Kind)
Implementations§
Source§impl InvalidExpandedJson
impl InvalidExpandedJson
pub fn duplicate_key(json_syntax::object::Duplicate: Duplicate<Entry>) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InvalidExpandedJson
impl RefUnwindSafe for InvalidExpandedJson
impl Send for InvalidExpandedJson
impl Sync for InvalidExpandedJson
impl Unpin for InvalidExpandedJson
impl UnwindSafe for InvalidExpandedJson
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