pub struct JsonConfig {
pub max_bytes: usize,
}Expand description
Configuration for JsonDataFormat. All fields have hardened defaults;
setting a non-default value is the per-item explicit choice per ADR-0033.
Fields§
§max_bytes: usizeMaximum input size accepted by unmarshal (DoS cap).
Default 16 MiB. The max_bytes cap is inert during marshal
(marshal serializes; it never parses untrusted input).
Trait Implementations§
Source§impl Clone for JsonConfig
impl Clone for JsonConfig
Source§fn clone(&self) -> JsonConfig
fn clone(&self) -> JsonConfig
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 JsonConfig
impl Debug for JsonConfig
Source§impl Default for JsonConfig
impl Default for JsonConfig
Source§impl<'de> Deserialize<'de> for JsonConfig
impl<'de> Deserialize<'de> for JsonConfig
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 JsonConfig
impl RefUnwindSafe for JsonConfig
impl Send for JsonConfig
impl Sync for JsonConfig
impl Unpin for JsonConfig
impl UnsafeUnpin for JsonConfig
impl UnwindSafe for JsonConfig
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