pub enum JsonClass {
Module,
Case(Detection<JsonFormat>),
}Expand description
Top level classification of bare JSON text: a PowerIO IR document or a case document with its format detection. One header read answers every question instead of requiring a full document parse per question.
Variants§
Module
A .pio.json stored module document. The stored document is not a
converter boundary format, so it stays out of SourceFormat;
callers route it to the stored module reader instead of a case parser.
Case(Detection<JsonFormat>)
A case document and its format detection.
Implementations§
Source§impl JsonClass
impl JsonClass
Sourcepub fn family(self) -> &'static str
pub fn family(self) -> &'static str
This classification’s family token, one of JSON_CLASSES. The
detected format, where there is one, is SourceFormat::name.
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