pub struct SchemaInferenceConfig {
pub ignore_outer_array: bool,
pub delimiter: Option<u8>,
pub schema_uri: Option<String>,
pub map_threshold: usize,
pub map_max_required_keys: Option<usize>,
pub unify_maps: bool,
pub force_field_types: HashMap<String, String>,
pub wrap_root: Option<String>,
}Fields§
§ignore_outer_array: boolWhether to treat top-level arrays as streams of objects
delimiter: Option<u8>Delimiter for NDJSON format (None for regular JSON)
schema_uri: Option<String>Schema URI to use (“AUTO” for auto-detection)
map_threshold: usizeThreshold above which non-fixed keys are treated as a map
map_max_required_keys: Option<usize>Maximum number of required keys a Map can have. If None, no gating based on required keys. If Some(n), objects with more than n required keys will be forced to Record type.
unify_maps: boolEnable unification of compatible but non-homogeneous record schemas into maps
force_field_types: HashMap<String, String>Force override of field treatment, e.g. {“labels”: “map”}
wrap_root: Option<String>Wrap the inferred top-level schema under a single required field with this name.
Example: wrap_root = Some(“labels”) turns {...} into
{"type":"object","properties":{"labels":{...}},"required":["labels"]}.
Trait Implementations§
Source§impl Clone for SchemaInferenceConfig
impl Clone for SchemaInferenceConfig
Source§fn clone(&self) -> SchemaInferenceConfig
fn clone(&self) -> SchemaInferenceConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 SchemaInferenceConfig
impl Debug for SchemaInferenceConfig
Source§impl Default for SchemaInferenceConfig
impl Default for SchemaInferenceConfig
Source§impl<'de> Deserialize<'de> for SchemaInferenceConfig
impl<'de> Deserialize<'de> for SchemaInferenceConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SchemaInferenceConfig
impl RefUnwindSafe for SchemaInferenceConfig
impl Send for SchemaInferenceConfig
impl Sync for SchemaInferenceConfig
impl Unpin for SchemaInferenceConfig
impl UnwindSafe for SchemaInferenceConfig
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,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more