pub struct ValidateConfig {
pub max_depth: Option<u64>,
pub max_message_size: Option<u64>,
pub message_len: Option<u64>,
}Expand description
Runtime tuning for a validation walk.
The schema already carries its declared limits; this config supplies the
deployment-specific ones: a global nesting cap and the original payload
length used to enforce max_message_size.
Fields§
§max_depth: Option<u64>Absolute cap on container nesting from the value root. None disables
the caller-supplied cap; the walk still enforces an internal hard
ceiling (HARD_DEPTH_CAP) so the recursion always terminates.
max_message_size: Option<u64>Maximum size of the original payload in bytes. Only enforced when
message_len is also supplied.
message_len: Option<u64>Length in bytes of the original payload that produced the value being validated.
Trait Implementations§
Source§impl Clone for ValidateConfig
impl Clone for ValidateConfig
Source§fn clone(&self) -> ValidateConfig
fn clone(&self) -> ValidateConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ValidateConfig
Source§impl Debug for ValidateConfig
impl Debug for ValidateConfig
Source§impl Default for ValidateConfig
impl Default for ValidateConfig
Source§fn default() -> ValidateConfig
fn default() -> ValidateConfig
Returns the “default value” for a type. Read more
impl Eq for ValidateConfig
Source§impl PartialEq for ValidateConfig
impl PartialEq for ValidateConfig
impl StructuralPartialEq for ValidateConfig
Auto Trait Implementations§
impl Freeze for ValidateConfig
impl RefUnwindSafe for ValidateConfig
impl Send for ValidateConfig
impl Sync for ValidateConfig
impl Unpin for ValidateConfig
impl UnsafeUnpin for ValidateConfig
impl UnwindSafe for ValidateConfig
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