pub struct XmlSafetyPolicy {
pub max_input_bytes: usize,
pub max_depth: usize,
pub max_elements: usize,
pub max_attributes_per_element: usize,
pub max_text_bytes: usize,
pub max_events: usize,
pub reject_doctype: bool,
}Expand description
Finite resource and declaration limits applied to untrusted XML.
Fields§
§max_input_bytes: usize§max_depth: usize§max_elements: usize§max_attributes_per_element: usize§max_text_bytes: usize§max_events: usize§reject_doctype: boolImplementations§
Trait Implementations§
Source§impl Clone for XmlSafetyPolicy
impl Clone for XmlSafetyPolicy
Source§fn clone(&self) -> XmlSafetyPolicy
fn clone(&self) -> XmlSafetyPolicy
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 moreSource§impl Debug for XmlSafetyPolicy
impl Debug for XmlSafetyPolicy
Source§impl Default for XmlSafetyPolicy
impl Default for XmlSafetyPolicy
Source§impl PartialEq for XmlSafetyPolicy
impl PartialEq for XmlSafetyPolicy
Source§fn eq(&self, other: &XmlSafetyPolicy) -> bool
fn eq(&self, other: &XmlSafetyPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for XmlSafetyPolicy
impl Eq for XmlSafetyPolicy
impl StructuralPartialEq for XmlSafetyPolicy
Auto Trait Implementations§
impl Freeze for XmlSafetyPolicy
impl RefUnwindSafe for XmlSafetyPolicy
impl Send for XmlSafetyPolicy
impl Sync for XmlSafetyPolicy
impl Unpin for XmlSafetyPolicy
impl UnsafeUnpin for XmlSafetyPolicy
impl UnwindSafe for XmlSafetyPolicy
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