pub enum LiteralExpansionError {
InvalidTypeValue,
ForbiddenVocab,
IdExpansionEmpty,
NotALiteral(NotALiteral),
}Expand description
Error raised while expanding a scalar into a literal or a node reference.
Variants§
InvalidTypeValue
The active property has a type mapping that is neither @id, @vocab,
@none nor an IRI, so it cannot be used as the datatype of the
literal.
ForbiddenVocab
The value had to be expanded through the vocabulary mapping (@vocab),
which the Policy in use forbids.
IdExpansionEmpty
The active property has an @id type mapping, but the value expanded
to nothing, leaving no identifier for the node reference.
NotALiteral(NotALiteral)
The value to expand is not a JSON scalar.
Implementations§
Trait Implementations§
Source§impl Debug for LiteralExpansionError
impl Debug for LiteralExpansionError
Source§impl Display for LiteralExpansionError
impl Display for LiteralExpansionError
Source§impl Error for LiteralExpansionError
impl Error for LiteralExpansionError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<LiteralExpansionError> for Error<E>
impl<E> From<LiteralExpansionError> for Error<E>
Source§fn from(e: LiteralExpansionError) -> Self
fn from(e: LiteralExpansionError) -> Self
Converts to this type from the input type.
Source§impl From<NotALiteral> for LiteralExpansionError
impl From<NotALiteral> for LiteralExpansionError
Source§fn from(source: NotALiteral) -> Self
fn from(source: NotALiteral) -> Self
Converts to this type from the input type.
Source§impl From<RejectVocab> for LiteralExpansionError
impl From<RejectVocab> for LiteralExpansionError
Source§fn from(_value: RejectVocab) -> Self
fn from(_value: RejectVocab) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LiteralExpansionError
impl RefUnwindSafe for LiteralExpansionError
impl Send for LiteralExpansionError
impl Sync for LiteralExpansionError
impl Unpin for LiteralExpansionError
impl UnsafeUnpin for LiteralExpansionError
impl UnwindSafe for LiteralExpansionError
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
Source§impl<T> BorrowUnordered for T
impl<T> BorrowUnordered for T
Source§fn as_unordered(&self) -> &Unordered<T>
fn as_unordered(&self) -> &Unordered<T>
Views this value as an
Unordered reference.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> 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>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more