pub enum SchemaLoadError {
TomlParse(Error),
Io {
path: PathBuf,
source: Error,
},
UnknownLabelRef(SmolStr),
DuplicateLabel(SmolStr),
DuplicateRelType(SmolStr),
DuplicateParameter(SmolStr),
BadType(String),
}Expand description
Errors surfaced by the TOML schema loader (spec 0002 §11).
Variants§
TomlParse(Error)
The input is not well-formed TOML, or does not match the expected shape.
Io
Reading the file failed.
UnknownLabelRef(SmolStr)
A relationship type references an undeclared label.
DuplicateLabel(SmolStr)
A label name is declared twice.
DuplicateRelType(SmolStr)
A rel type name is declared twice.
DuplicateParameter(SmolStr)
A parameter name is declared twice.
BadType(String)
A type string lies outside the grammar in spec 0002 §4, or
[meta].cyrs_schema_version does not match the supported version.
Trait Implementations§
Source§impl Debug for SchemaLoadError
impl Debug for SchemaLoadError
Source§impl Display for SchemaLoadError
impl Display for SchemaLoadError
Source§impl Error for SchemaLoadError
impl Error for SchemaLoadError
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<BuilderError> for SchemaLoadError
impl From<BuilderError> for SchemaLoadError
Source§fn from(err: BuilderError) -> Self
fn from(err: BuilderError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SchemaLoadError
impl !RefUnwindSafe for SchemaLoadError
impl Send for SchemaLoadError
impl Sync for SchemaLoadError
impl Unpin for SchemaLoadError
impl UnsafeUnpin for SchemaLoadError
impl !UnwindSafe for SchemaLoadError
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