pub enum InvalidValue {
LanguageTaggedString,
BaseDirection,
IndexValue,
TypedValue,
ValueObject,
ValueObjectValue,
LanguageTaggedValue,
ForbiddenVocab,
}Expand description
Error raised while expanding a value object, a map with an @value entry.
Variants§
LanguageTaggedString
The @language entry of the value object is not a string.
BaseDirection
The @direction entry of the value object is neither "ltr" nor
"rtl".
IndexValue
The @index entry of the value object is not a string.
TypedValue
The @type entry of the value object is not a string, or does not
expand to an IRI or to @json.
ValueObject
The value object has an entry other than @value, @type,
@language, @direction and @index, or combines @type with
@language or @direction.
ValueObjectValue
The @value entry holds an array or a map where only a scalar or
null is allowed. A @type of @json lifts that restriction.
LanguageTaggedValue
The value object carries @language or @direction but its @value
is not a string, so it cannot be tagged.
ForbiddenVocab
The @type entry had to be expanded through the vocabulary mapping
(@vocab), which the Policy in use forbids.
Implementations§
Trait Implementations§
Source§impl Debug for InvalidValue
impl Debug for InvalidValue
Source§impl Display for InvalidValue
impl Display for InvalidValue
Source§impl Error for InvalidValue
impl Error for InvalidValue
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<E> From<InvalidValue> for Error<E>
impl<E> From<InvalidValue> for Error<E>
Source§fn from(e: InvalidValue) -> Self
fn from(e: InvalidValue) -> Self
Source§impl From<RejectVocab> for InvalidValue
impl From<RejectVocab> for InvalidValue
Source§fn from(_value: RejectVocab) -> Self
fn from(_value: RejectVocab) -> Self
Auto Trait Implementations§
impl Freeze for InvalidValue
impl RefUnwindSafe for InvalidValue
impl Send for InvalidValue
impl Sync for InvalidValue
impl Unpin for InvalidValue
impl UnsafeUnpin for InvalidValue
impl UnwindSafe for InvalidValue
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.