pub struct SecurityLimits {
pub max_file_size: usize,
pub max_nesting_depth: usize,
pub max_attributes_per_element: usize,
pub max_attribute_length: usize,
pub max_text_length: usize,
pub max_elements: usize,
pub max_buffer_size: usize,
}Expand description
Security limits for parsing L5X files
Fields§
§max_file_size: usizeMaximum XML file size in bytes
max_nesting_depth: usizeMaximum depth of nested XML elements
max_attributes_per_element: usizeMaximum number of attributes per element
max_attribute_length: usizeMaximum attribute name/value length
max_text_length: usizeMaximum text content length
max_elements: usizeMaximum number of elements in document
max_buffer_size: usizeMaximum buffer size for quick-xml
Implementations§
Trait Implementations§
Source§impl Clone for SecurityLimits
impl Clone for SecurityLimits
Source§fn clone(&self) -> SecurityLimits
fn clone(&self) -> SecurityLimits
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 SecurityLimits
impl Debug for SecurityLimits
Auto Trait Implementations§
impl Freeze for SecurityLimits
impl RefUnwindSafe for SecurityLimits
impl Send for SecurityLimits
impl Sync for SecurityLimits
impl Unpin for SecurityLimits
impl UnsafeUnpin for SecurityLimits
impl UnwindSafe for SecurityLimits
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