pub enum CompiledSchemaError {
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: IriRef,
node: Node,
},
DatatypeDontMatchString {
expected: IriRef,
lexical_form: String,
},
DatatypeDontMatchLangString {
expected: IriRef,
lexical_form: String,
lang: 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 CompiledSchemaError
impl Clone for CompiledSchemaError
Source§fn clone(&self) -> CompiledSchemaError
fn clone(&self) -> CompiledSchemaError
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 CompiledSchemaError
impl Debug for CompiledSchemaError
Source§impl Display for CompiledSchemaError
impl Display for CompiledSchemaError
Source§impl Error for CompiledSchemaError
impl Error for CompiledSchemaError
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 CompiledSchemaError
impl From<SchemaJsonError> for CompiledSchemaError
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 CompiledSchemaError
impl RefUnwindSafe for CompiledSchemaError
impl Send for CompiledSchemaError
impl Sync for CompiledSchemaError
impl Unpin for CompiledSchemaError
impl UnwindSafe for CompiledSchemaError
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