pub struct Limits {
pub bytes: usize,
pub allocation: usize,
pub nodes: usize,
pub depth: usize,
}Expand description
Consumer-selected allowances, checked against the schema before decoding.
Fields§
§bytes: usizeMaximum complete envelope bytes, including its 11-byte header.
allocation: usizeMaximum value heap plus codec scratch (excludes caller input).
nodes: usizeMaximum visited value nodes, including unit elements.
depth: usizeMaximum nesting depth.
Trait Implementations§
Auto Trait Implementations§
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