#[non_exhaustive]pub struct ValidationLimits {
pub max_depth: usize,
pub max_nodes: usize,
pub max_input_bytes: usize,
pub max_work: usize,
pub max_copied_bytes: usize,
}Expand description
Caller-selected validation resource bounds, checked before schema work.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.max_depth: usize§max_nodes: usize§max_input_bytes: usize§max_work: usize§max_copied_bytes: usizeImplementations§
Trait Implementations§
Source§impl Clone for ValidationLimits
impl Clone for ValidationLimits
Source§impl Debug for ValidationLimits
impl Debug for ValidationLimits
Auto Trait Implementations§
impl Freeze for ValidationLimits
impl RefUnwindSafe for ValidationLimits
impl Send for ValidationLimits
impl Sync for ValidationLimits
impl Unpin for ValidationLimits
impl UnsafeUnpin for ValidationLimits
impl UnwindSafe for ValidationLimits
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