pub struct SecurityConfig {Show 13 fields
pub max_xml_size: usize,
pub max_json_size: usize,
pub max_string_size: usize,
pub max_xml_depth: usize,
pub max_attributes_per_element: usize,
pub max_child_elements: usize,
pub allow_external_entities: bool,
pub allow_dtd: bool,
pub rate_limiting_enabled: bool,
pub max_requests_per_minute: u32,
pub enable_entity_classification: bool,
pub max_entity_expansion_ratio: f64,
pub max_entity_depth: usize,
}
Expand description
Security configuration for XML parsing
Fields§
§max_xml_size: usize
Maximum XML input size
max_json_size: usize
Maximum JSON input size
max_string_size: usize
Maximum string field size
max_xml_depth: usize
Maximum XML nesting depth
max_attributes_per_element: usize
Maximum attributes per element
max_child_elements: usize
Maximum child elements
allow_external_entities: bool
Whether to allow external entities
allow_dtd: bool
Whether to allow DTD processing
rate_limiting_enabled: bool
Rate limiting enabled
max_requests_per_minute: u32
Maximum requests per minute
enable_entity_classification: bool
Enable advanced entity classification
max_entity_expansion_ratio: f64
Maximum allowed entity expansion ratio
max_entity_depth: usize
Maximum entity recursion depth
Trait Implementations§
Source§impl Clone for SecurityConfig
impl Clone for SecurityConfig
Source§fn clone(&self) -> SecurityConfig
fn clone(&self) -> SecurityConfig
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 SecurityConfig
impl Debug for SecurityConfig
Auto Trait Implementations§
impl Freeze for SecurityConfig
impl RefUnwindSafe for SecurityConfig
impl Send for SecurityConfig
impl Sync for SecurityConfig
impl Unpin for SecurityConfig
impl UnwindSafe for SecurityConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more