pub struct Limits {
pub bytes: usize,
pub depth: usize,
pub values: usize,
pub string_bytes: usize,
pub members: usize,
}Expand description
Bounds applied before and during decoding or encoding.
Fields§
§bytes: usizeMaximum encoded byte count.
depth: usizeMaximum nested arrays/objects; the root value starts at depth zero.
values: usizeMaximum total values, including the root.
string_bytes: usizeMaximum decoded bytes in any string, including member names.
members: usizeMaximum members/elements in any container.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Limits
impl Freeze for Limits
impl RefUnwindSafe for Limits
impl Send for Limits
impl Sync for Limits
impl Unpin for Limits
impl UnsafeUnpin for Limits
impl UnwindSafe for Limits
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