pub enum JsonMode {
Array,
Object,
Flatten,
}Expand description
Controls how JSON input files are parsed into rows.
Variants§
Array
Each element of a top-level JSON array becomes a row (default).
If the root is an object the object itself becomes a single row.
Object
Each key-value pair of a JSON object becomes a row with “key” and “value” columns.
Useful for flat configuration or metadata objects.
Flatten
Recursively flatten nested JSON objects and arrays into a single row per top-level
element, using dotted key paths (e.g. address.city) for nested fields.
Trait Implementations§
impl Copy for JsonMode
impl Eq for JsonMode
impl StructuralPartialEq for JsonMode
Auto Trait Implementations§
impl Freeze for JsonMode
impl RefUnwindSafe for JsonMode
impl Send for JsonMode
impl Sync for JsonMode
impl Unpin for JsonMode
impl UnsafeUnpin for JsonMode
impl UnwindSafe for JsonMode
Blanket Implementations§
impl<T> Allocation for T
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
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
Compare self to
key and return true if they are equal.