pub enum TomlSchemaError {
Parse(Error),
UnsupportedVersion(u32),
InvalidName {
kind: &'static str,
name: String,
},
UnknownValueType {
ident: String,
value: String,
},
UnknownCardinality {
ident: String,
value: String,
},
UnknownUnique {
ident: String,
value: String,
},
ConflictingCardinality {
ident: String,
},
DuplicateAttribute(String),
DuplicateEntity(String),
}Expand description
TOML schema parsing or normalization failure.
Variants§
Parse(Error)
The input is not valid TOML or does not match the schema document shape.
UnsupportedVersion(u32)
The document declares an unsupported format version.
InvalidName
A group or attribute name is not a valid EDN keyword component.
UnknownValueType
A value type name is not part of Corium’s schema model.
UnknownCardinality
A cardinality name is neither one nor many.
UnknownUnique
A uniqueness mode is neither identity nor value.
ConflictingCardinality
Both cardinality spellings were supplied for one declaration.
DuplicateAttribute(String)
Grouped and/or flat syntax declared the same canonical attribute twice.
DuplicateEntity(String)
Two entity authoring blocks use the same group name.
Trait Implementations§
Source§impl Debug for TomlSchemaError
impl Debug for TomlSchemaError
Source§impl Display for TomlSchemaError
impl Display for TomlSchemaError
Source§impl Error for TomlSchemaError
impl Error for TomlSchemaError
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 TomlSchemaError
impl RefUnwindSafe for TomlSchemaError
impl Send for TomlSchemaError
impl Sync for TomlSchemaError
impl Unpin for TomlSchemaError
impl UnsafeUnpin for TomlSchemaError
impl UnwindSafe for TomlSchemaError
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