pub struct JsonParserConfig {
pub format: Option<JsonFormat>,
pub max_rows: Option<usize>,
}Expand description
Configuration for JSON/JSONL parsing and scanning.
Fields§
§format: Option<JsonFormat>Force a specific format (None = auto-detect from content).
max_rows: Option<usize>Maximum rows to process (None = all rows).
Implementations§
Source§impl JsonParserConfig
impl JsonParserConfig
Sourcepub fn with_max_rows(self, max_rows: usize) -> Self
pub fn with_max_rows(self, max_rows: usize) -> Self
Set the maximum number of rows to process.
Sourcepub fn json_array() -> Self
pub fn json_array() -> Self
Force JSON array format.
Trait Implementations§
Source§impl Clone for JsonParserConfig
impl Clone for JsonParserConfig
Source§fn clone(&self) -> JsonParserConfig
fn clone(&self) -> JsonParserConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for JsonParserConfig
impl Debug for JsonParserConfig
Source§impl Default for JsonParserConfig
impl Default for JsonParserConfig
Source§fn default() -> JsonParserConfig
fn default() -> JsonParserConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for JsonParserConfig
impl RefUnwindSafe for JsonParserConfig
impl Send for JsonParserConfig
impl Sync for JsonParserConfig
impl Unpin for JsonParserConfig
impl UnsafeUnpin for JsonParserConfig
impl UnwindSafe for JsonParserConfig
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