pub struct KernelBootstrapLimits {
pub absolute_max_input_bytes: u32,
pub absolute_max_json_depth: u16,
pub absolute_max_collection_entries: u32,
}Expand description
Absolute structural boundary applied before any JSON is parsed (§7.3).
These are build/construction-time safety limits, not operation configuration:
OperationConfig.kernel_limits may only tighten them, never widen them. Enforcing them
pre-parse is the point — a bound checked after serde_json has already materialised the
document is a bound the attacker already spent.
Fields§
§absolute_max_input_bytes: u32§absolute_max_json_depth: u16§absolute_max_collection_entries: u32Implementations§
Trait Implementations§
Source§impl Clone for KernelBootstrapLimits
impl Clone for KernelBootstrapLimits
Source§fn clone(&self) -> KernelBootstrapLimits
fn clone(&self) -> KernelBootstrapLimits
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 KernelBootstrapLimits
Source§impl Debug for KernelBootstrapLimits
impl Debug for KernelBootstrapLimits
Source§impl Default for KernelBootstrapLimits
impl Default for KernelBootstrapLimits
Source§impl<'de> Deserialize<'de> for KernelBootstrapLimits
impl<'de> Deserialize<'de> for KernelBootstrapLimits
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for KernelBootstrapLimits
Source§impl PartialEq for KernelBootstrapLimits
impl PartialEq for KernelBootstrapLimits
Source§impl Serialize for KernelBootstrapLimits
impl Serialize for KernelBootstrapLimits
impl StructuralPartialEq for KernelBootstrapLimits
Auto Trait Implementations§
impl Freeze for KernelBootstrapLimits
impl RefUnwindSafe for KernelBootstrapLimits
impl Send for KernelBootstrapLimits
impl Sync for KernelBootstrapLimits
impl Unpin for KernelBootstrapLimits
impl UnsafeUnpin for KernelBootstrapLimits
impl UnwindSafe for KernelBootstrapLimits
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