pub enum InvalidExpandedJson {
}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
The value is not a JSON object.
InvalidList
The @list entry does not hold an array.
InvalidIndex
The @index entry does not hold a string.
InvalidId
The @id entry does not hold a valid identifier.
InvalidValueType
The @type entry of a value object is invalid.
InvalidLiteral
The @value entry does not hold a literal.
InvalidLanguage
The @language entry does not hold a language tag.
InvalidDirection
The @direction entry does not hold ltr or rtl.
InvalidLangString
The value is not a well-formed language-tagged string.
NotExpanded
The document is not in expanded form.
UnexpectedEntry
The object carries an entry that is not allowed here.
DuplicateKey(Key)
The object carries the same key twice.
Unexpected(Kind, Kind)
A value of the wrong JSON kind was found.
Implementations§
Source§impl InvalidExpandedJson
impl InvalidExpandedJson
Sourcepub fn duplicate_key(jstrict::object::Duplicate: Duplicate<Entry>) -> Self
pub fn duplicate_key(jstrict::object::Duplicate: Duplicate<Entry>) -> Self
Builds a duplicate-key error from the duplicate jstrict reports.
Trait Implementations§
Source§impl Debug for InvalidExpandedJson
impl Debug for InvalidExpandedJson
Source§impl Display for InvalidExpandedJson
impl Display for InvalidExpandedJson
Source§impl Error for InvalidExpandedJson
impl Error for InvalidExpandedJson
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<InvalidExpandedJson> for ExpandedJsonTextError
impl From<InvalidExpandedJson> for ExpandedJsonTextError
Source§fn from(source: InvalidExpandedJson) -> Self
fn from(source: InvalidExpandedJson) -> Self
Auto Trait Implementations§
impl Freeze for InvalidExpandedJson
impl RefUnwindSafe for InvalidExpandedJson
impl Send for InvalidExpandedJson
impl Sync for InvalidExpandedJson
impl Unpin for InvalidExpandedJson
impl UnsafeUnpin 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
Source§impl<T> BorrowUnordered for T
impl<T> BorrowUnordered for T
Source§fn as_unordered(&self) -> &Unordered<T>
fn as_unordered(&self) -> &Unordered<T>
Unordered reference.impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read more