#[non_exhaustive]pub enum SkipReason {
NoFrontmatter,
UnterminatedFrontmatter,
UnparsableFrontmatter,
MissingType,
}Expand description
Why a file in the bundle directory did not become a concept.
#[non_exhaustive] because this names ways a document can be malformed,
and unlike Trust that set is open: it grows with every real bundle that
arrives shaped in a way nobody predicted. A caller should be able to report a
new one without this becoming a breaking change.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
NoFrontmatter
The file does not open with a --- frontmatter fence.
UnterminatedFrontmatter
It opens one and never closes it.
UnparsableFrontmatter
The block is delimited correctly but is not parseable YAML.
Distinct from Self::MissingType on purpose. Both end with no type,
but they send a producer to different places: one means add a key, the
other means the block does not parse at all — and reporting broken YAML
as a missing field is how someone spends an afternoon staring at a type
that was there all along.
MissingType
The frontmatter carries no type, or an empty one — OKF’s only hard
requirement (§4).
Implementations§
Trait Implementations§
Source§impl Clone for SkipReason
impl Clone for SkipReason
Source§fn clone(&self) -> SkipReason
fn clone(&self) -> SkipReason
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 SkipReason
Source§impl Debug for SkipReason
impl Debug for SkipReason
impl Eq for SkipReason
Source§impl PartialEq for SkipReason
impl PartialEq for SkipReason
impl StructuralPartialEq for SkipReason
Auto Trait Implementations§
impl Freeze for SkipReason
impl RefUnwindSafe for SkipReason
impl Send for SkipReason
impl Sync for SkipReason
impl Unpin for SkipReason
impl UnsafeUnpin for SkipReason
impl UnwindSafe for SkipReason
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
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.