#[non_exhaustive]pub enum SchemaErrorKind {
Show 15 variants
Syntax,
InvalidDocumentShape,
UnsupportedVersion,
DuplicateId,
UnresolvedRef,
ForbiddenRef,
DuplicateRef,
ReservedId,
InvalidMatcher,
InvalidRepeat,
OrderedScopeMismatch,
ConflictingCardinality,
ConflictingFrontmatter,
ConflictingOutline,
InvalidFrontmatterSchema,
}Expand description
Machine-readable categories for schema loading failures.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Syntax
The input is not syntactically valid YAML or JSON.
InvalidDocumentShape
The parsed value does not have the required schema document shape.
UnsupportedVersion
The declared schema version is not supported.
DuplicateId
Two rules in one sibling scope resolve to the same id.
UnresolvedRef
A constraint reference does not resolve to a rule.
ForbiddenRef
A constraint references a rule that denies matching sections.
DuplicateRef
A constraint contains the same resolved proposition more than once.
ReservedId
A top-level rule uses the reserved fm identifier.
InvalidMatcher
A matcher cannot be normalized or compiled.
InvalidRepeat
A repeat declaration is malformed or has inconsistent bounds.
OrderedScopeMismatch
An ordered constraint uses a non-positional frontmatter proposition, mixes scopes, descends through a repeatable ancestor, or targets a scope already ordered by its rule list.
ConflictingCardinality
A rule declares both required and repeat, or denies a cardinality.
ConflictingFrontmatter
The frontmatter policy both requires and forbids frontmatter.
ConflictingOutline
A schema declares outline together with title or sections.
InvalidFrontmatterSchema
A frontmatter JSON Schema is malformed or uses an unsupported dialect.
Implementations§
Trait Implementations§
Source§impl Clone for SchemaErrorKind
impl Clone for SchemaErrorKind
Source§fn clone(&self) -> SchemaErrorKind
fn clone(&self) -> SchemaErrorKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for SchemaErrorKind
Source§impl Debug for SchemaErrorKind
impl Debug for SchemaErrorKind
Source§impl Display for SchemaErrorKind
impl Display for SchemaErrorKind
impl Eq for SchemaErrorKind
Source§impl Hash for SchemaErrorKind
impl Hash for SchemaErrorKind
Source§impl PartialEq for SchemaErrorKind
impl PartialEq for SchemaErrorKind
impl StructuralPartialEq for SchemaErrorKind
Auto Trait Implementations§
impl Freeze for SchemaErrorKind
impl RefUnwindSafe for SchemaErrorKind
impl Send for SchemaErrorKind
impl Sync for SchemaErrorKind
impl Unpin for SchemaErrorKind
impl UnsafeUnpin for SchemaErrorKind
impl UnwindSafe for SchemaErrorKind
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.