pub enum SchemaIRError {
Show 25 variants
Str2IriError {
str: String,
},
IriParseError {
str: String,
err: IriSError,
},
SchemaJsonError(SchemaJsonError),
DuplicatedTripleExprLabel {
label: TripleExprLabel,
},
MinLessZero {
min: i32,
},
MaxIncorrect {
max: i32,
},
NodeKindIri {
node: Node,
},
NodeKindBNode {
node: Node,
},
NodeKindLiteral {
node: Node,
},
NodeKindNonLiteral {
node: Node,
},
DatatypeDontMatch {
found: IriRef,
expected: IriRef,
lexical_form: String,
},
DatatypeNoLiteral {
expected: Box<IriRef>,
node: Box<Node>,
},
DatatypeDontMatchString {
expected: IriRef,
lexical_form: String,
},
DatatypeDontMatchLangString {
lexical_form: String,
lang: Box<Lang>,
},
LengthError {
expected: usize,
found: usize,
node: String,
},
MinLengthError {
expected: usize,
found: usize,
node: String,
},
MaxLengthError {
expected: usize,
found: usize,
node: String,
},
MinInclusiveError {
expected: NumericLiteral,
found: NumericLiteral,
node: String,
},
NonNumeric {
node: String,
},
ShapeLabelNotFound {
shape_label: ShapeLabel,
},
Todo {
msg: String,
},
IriRef2ShapeLabelError {
prefix: String,
local: String,
},
PrefixedNotFound {
prefix: String,
local: String,
err: Box<PrefixMapError>,
},
LabelNotFound {
shape_label: ShapeLabel,
},
Internal {
msg: String,
},
}
Variants§
Str2IriError
IriParseError
SchemaJsonError(SchemaJsonError)
DuplicatedTripleExprLabel
Fields
§
label: TripleExprLabel
MinLessZero
MaxIncorrect
NodeKindIri
NodeKindBNode
NodeKindLiteral
NodeKindNonLiteral
DatatypeDontMatch
DatatypeNoLiteral
DatatypeDontMatchString
DatatypeDontMatchLangString
LengthError
MinLengthError
MaxLengthError
MinInclusiveError
NonNumeric
ShapeLabelNotFound
Fields
§
shape_label: ShapeLabel
Todo
IriRef2ShapeLabelError
PrefixedNotFound
LabelNotFound
Fields
§
shape_label: ShapeLabel
Internal
Trait Implementations§
Source§impl Clone for SchemaIRError
impl Clone for SchemaIRError
Source§fn clone(&self) -> SchemaIRError
fn clone(&self) -> SchemaIRError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SchemaIRError
impl Debug for SchemaIRError
Source§impl Display for SchemaIRError
impl Display for SchemaIRError
Source§impl Error for SchemaIRError
impl Error for SchemaIRError
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 From<SchemaJsonError> for SchemaIRError
impl From<SchemaJsonError> for SchemaIRError
Source§fn from(source: SchemaJsonError) -> Self
fn from(source: SchemaJsonError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SchemaIRError
impl RefUnwindSafe for SchemaIRError
impl Send for SchemaIRError
impl Sync for SchemaIRError
impl Unpin for SchemaIRError
impl UnwindSafe for SchemaIRError
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more