pub enum JsonErrorPolicy {
Skip,
Strict,
}Expand description
How JSON/JSONL parsing reacts to a malformed record.
Shared across the file, in-memory, and async byte input paths so callers get the same recovery behavior regardless of transport.
Variants§
Skip
Skip the malformed record, count it, and keep scanning. The profile is
reported as partial via execution.error_count.
Strict
Abort on the first malformed record with a JsonParsingError carrying
line/column context (never the record contents).
Trait Implementations§
Source§impl Clone for JsonErrorPolicy
impl Clone for JsonErrorPolicy
Source§fn clone(&self) -> JsonErrorPolicy
fn clone(&self) -> JsonErrorPolicy
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 moreimpl Copy for JsonErrorPolicy
Source§impl Debug for JsonErrorPolicy
impl Debug for JsonErrorPolicy
Source§impl Default for JsonErrorPolicy
impl Default for JsonErrorPolicy
Source§fn default() -> JsonErrorPolicy
fn default() -> JsonErrorPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for JsonErrorPolicy
impl<'de> Deserialize<'de> for JsonErrorPolicy
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
impl Eq for JsonErrorPolicy
Source§impl PartialEq for JsonErrorPolicy
impl PartialEq for JsonErrorPolicy
Source§impl Serialize for JsonErrorPolicy
impl Serialize for JsonErrorPolicy
impl StructuralPartialEq for JsonErrorPolicy
Auto Trait Implementations§
impl Freeze for JsonErrorPolicy
impl RefUnwindSafe for JsonErrorPolicy
impl Send for JsonErrorPolicy
impl Sync for JsonErrorPolicy
impl Unpin for JsonErrorPolicy
impl UnsafeUnpin for JsonErrorPolicy
impl UnwindSafe for JsonErrorPolicy
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