pub struct Limits {
pub max_input_bytes: usize,
pub max_output_bytes: usize,
pub max_depth: usize,
pub max_nodes: usize,
pub max_collection_entries: usize,
pub max_string_bytes: usize,
pub max_blob_bytes: usize,
pub max_payload_bytes: usize,
pub max_allocation_bytes: usize,
pub max_work: usize,
pub max_diagnostic_bytes: usize,
}Expand description
Inclusive bounds. Work counts traversed nodes and bytes, plus collection sorting estimates. Allocation counts conservative reservations, not allocator metadata.
Fields§
§max_input_bytes: usize§max_output_bytes: usize§max_depth: usize§max_nodes: usize§max_collection_entries: usize§max_string_bytes: usize§max_blob_bytes: usize§max_payload_bytes: usize§max_allocation_bytes: usize§max_work: usize§max_diagnostic_bytes: 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