pub struct AliasLimits {
pub max_total_replayed_events: usize,
pub max_replay_stack_depth: usize,
pub max_alias_expansions_per_anchor: usize,
}
Expand description
Limits applied to alias replay to harden against alias bombs.
Fields§
§max_total_replayed_events: usize
Maximum total number of replayed events injected from aliases across the entire parse. When exceeded, deserialization errors (alias replay limit exceeded).
max_replay_stack_depth: usize
Maximum depth of the alias replay stack (nested alias → injected buffer → alias, etc.).
max_alias_expansions_per_anchor: usize
Maximum number of times a single anchor id may be expanded via alias.
Use usize::MAX
for “unlimited”.
Trait Implementations§
Source§impl Clone for AliasLimits
impl Clone for AliasLimits
Source§fn clone(&self) -> AliasLimits
fn clone(&self) -> AliasLimits
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AliasLimits
impl Debug for AliasLimits
Source§impl Default for AliasLimits
impl Default for AliasLimits
impl Copy for AliasLimits
Auto Trait Implementations§
impl Freeze for AliasLimits
impl RefUnwindSafe for AliasLimits
impl Send for AliasLimits
impl Sync for AliasLimits
impl Unpin for AliasLimits
impl UnwindSafe for AliasLimits
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