pub struct CodecLimits {
pub max_bytes: usize,
pub max_depth: usize,
pub max_collection_len: usize,
pub max_string_bytes: usize,
}Expand description
The complete canonical JSON structural limit set.
Fields§
§max_bytes: usizeMaximum encoded or decoded bytes.
max_depth: usizeMaximum nested value depth.
max_collection_len: usizeMaximum direct collection members.
max_string_bytes: usizeMaximum bytes in one string or key.
Implementations§
Source§impl CodecLimits
impl CodecLimits
Trait Implementations§
Source§impl Clone for CodecLimits
impl Clone for CodecLimits
Source§fn clone(&self) -> CodecLimits
fn clone(&self) -> CodecLimits
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 CodecLimits
Source§impl Debug for CodecLimits
impl Debug for CodecLimits
Source§impl Default for CodecLimits
impl Default for CodecLimits
impl Eq for CodecLimits
Source§impl PartialEq for CodecLimits
impl PartialEq for CodecLimits
impl StructuralPartialEq for CodecLimits
Auto Trait Implementations§
impl Freeze for CodecLimits
impl RefUnwindSafe for CodecLimits
impl Send for CodecLimits
impl Sync for CodecLimits
impl Unpin for CodecLimits
impl UnsafeUnpin for CodecLimits
impl UnwindSafe for CodecLimits
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