pub struct StreamConfig {
pub buffer_size: usize,
pub max_recursion_depth: usize,
pub max_batch_size: usize,
pub default_type_name: String,
pub version: (u32, u32),
pub infer_lists: bool,
pub entity_policy: EntityPolicy,
pub log_security_events: bool,
}Expand description
Configuration for streaming XML parsing
Fields§
§buffer_size: usizeBuffer size for reading chunks (default: 64KB)
max_recursion_depth: usizeMaximum recursion depth (default: 100)
max_batch_size: usizeMaximum list size before yielding (default: 1000)
default_type_name: StringDefault type name for inferred lists
version: (u32, u32)HEDL version
infer_lists: boolTry to infer list structures from repeated elements
entity_policy: EntityPolicyEntity handling policy (XXE prevention)
log_security_events: boolEnable security event logging
Trait Implementations§
Source§impl Clone for StreamConfig
impl Clone for StreamConfig
Source§fn clone(&self) -> StreamConfig
fn clone(&self) -> StreamConfig
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 StreamConfig
impl Debug for StreamConfig
Auto Trait Implementations§
impl Freeze for StreamConfig
impl RefUnwindSafe for StreamConfig
impl Send for StreamConfig
impl Sync for StreamConfig
impl Unpin for StreamConfig
impl UnwindSafe for StreamConfig
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