pub struct Limits {
pub max_input_len: usize,
pub max_string_len: usize,
pub max_output_len: usize,
pub max_nodes: usize,
pub max_depth: usize,
}Expand description
Resource budgets, independent of the eventual transport/message limits.
Nodes count values AND dictionary keys, including overwritten duplicates. Borrowed strings do not allocate. Container metadata is bounded by node count and input size; this is not an exact allocator-byte budget. Depth counts containers only: zero permits scalars, one permits a list/dict of scalars.
Fields§
§max_input_len: usize§max_string_len: usize§max_output_len: usize§max_nodes: usize§max_depth: usizeTrait 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