pub enum FromLinkedDataError {
ExpectedIri(ContextIris),
UnsupportedIri {
context: ContextIris,
found: IriBuf,
supported: Option<Vec<IriBuf>>,
},
ExpectedLiteral(ContextIris),
LiteralTypeMismatch {
context: ContextIris,
expected: Option<IriBuf>,
found: IriBuf,
},
InvalidLiteral(ContextIris),
MissingRequiredValue(ContextIris),
TooManyValues(ContextIris),
InvalidSubject {
context: ContextIris,
subject: Option<IriBuf>,
},
}
Variants§
ExpectedIri(ContextIris)
Resource has no IRI representation.
UnsupportedIri
Fields
§
context: ContextIris
Error context.
ExpectedLiteral(ContextIris)
Resource has no literal representation.
LiteralTypeMismatch
Resource has literal representations, but none of the expected type.
InvalidLiteral(ContextIris)
Resource has a literal representation of the correct type, but the lexical value could not be successfully parsed.
MissingRequiredValue(ContextIris)
Missing required value.
TooManyValues(ContextIris)
Too many values.
InvalidSubject
Generic error for invalid subjects.
Implementations§
Source§impl FromLinkedDataError
impl FromLinkedDataError
pub fn context(&self) -> &ContextIris
Trait Implementations§
Source§impl Debug for FromLinkedDataError
impl Debug for FromLinkedDataError
Source§impl Display for FromLinkedDataError
impl Display for FromLinkedDataError
Source§impl Error for FromLinkedDataError
impl Error for FromLinkedDataError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for FromLinkedDataError
impl RefUnwindSafe for FromLinkedDataError
impl Send for FromLinkedDataError
impl Sync for FromLinkedDataError
impl Unpin for FromLinkedDataError
impl UnwindSafe for FromLinkedDataError
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