pub struct PartialConfig {
pub from_json_config: FromJsonConfig,
pub tolerance: ErrorTolerance,
pub include_partial_on_fatal: bool,
pub replace_invalid_with_null: bool,
}Expand description
Configuration for partial parsing
Fields§
§from_json_config: FromJsonConfigBase configuration for JSON conversion
tolerance: ErrorToleranceError tolerance strategy
include_partial_on_fatal: boolWhether to include partial results even on fatal errors
replace_invalid_with_null: boolReplace invalid values with null instead of skipping
Implementations§
Source§impl PartialConfig
impl PartialConfig
Sourcepub fn builder() -> PartialConfigBuilder
pub fn builder() -> PartialConfigBuilder
Create a new builder for partial parsing configuration
Trait Implementations§
Source§impl Clone for PartialConfig
impl Clone for PartialConfig
Source§fn clone(&self) -> PartialConfig
fn clone(&self) -> PartialConfig
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 PartialConfig
impl Debug for PartialConfig
Source§impl Default for PartialConfig
impl Default for PartialConfig
Source§fn default() -> PartialConfig
fn default() -> PartialConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PartialConfig
impl RefUnwindSafe for PartialConfig
impl Send for PartialConfig
impl Sync for PartialConfig
impl Unpin for PartialConfig
impl UnwindSafe for PartialConfig
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