pub enum JsonClass {
Package,
Case(Detection<SourceFormat>),
}Expand description
Top level classification of bare JSON text: a .pio.json package
or a case document with its format detection. The package outcome lives in
the classifier’s result rather than a separate predicate, so every consumer
handles it, and one parse answers both questions.
Variants§
Package
A .pio.json package. A package is not a converter boundary
format, so it stays out of SourceFormat; callers route it to the
package reader instead of a case parser.
Case(Detection<SourceFormat>)
A case document and its format detection.
Trait Implementations§
impl Copy for JsonClass
impl Eq for JsonClass
impl StructuralPartialEq for JsonClass
Auto Trait Implementations§
impl Freeze for JsonClass
impl RefUnwindSafe for JsonClass
impl Send for JsonClass
impl Sync for JsonClass
impl Unpin for JsonClass
impl UnsafeUnpin for JsonClass
impl UnwindSafe for JsonClass
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more