pub struct JsonSettings {
pub framing: JsonFraming,
pub on_error: OnError,
pub reject_duplicate_keys: bool,
}Expand description
The deserializer: { json: ... } settings.
Fields§
§framing: JsonFramingPayload framing.
on_error: OnErrorRecord-level error policy.
reject_duplicate_keys: boolReject (rather than silently last-value-wins) any JSON object with a duplicate key, at any depth. Off by default; enabling it parses each document a second time for the structural check.
Trait Implementations§
Source§impl Clone for JsonSettings
impl Clone for JsonSettings
Source§fn clone(&self) -> JsonSettings
fn clone(&self) -> JsonSettings
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 JsonSettings
impl Debug for JsonSettings
Source§impl Default for JsonSettings
impl Default for JsonSettings
Source§fn default() -> JsonSettings
fn default() -> JsonSettings
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for JsonSettingswhere
JsonSettings: Default,
impl<'de> Deserialize<'de> for JsonSettingswhere
JsonSettings: Default,
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 JsonSettings
impl RefUnwindSafe for JsonSettings
impl Send for JsonSettings
impl Sync for JsonSettings
impl Unpin for JsonSettings
impl UnsafeUnpin for JsonSettings
impl UnwindSafe for JsonSettings
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