pub struct SecurityConfig {
pub disable_dtd: bool,
pub disable_external_entities: bool,
pub max_entity_expansions: usize,
pub max_entity_depth: usize,
pub max_element_depth: usize,
pub max_attribute_size: usize,
pub max_text_size: usize,
pub max_file_size: usize,
pub parse_timeout: Duration,
pub stream_timeout: Duration,
pub allow_network: bool,
pub allowed_schemas: Vec<String>,
}
Expand description
Security configuration for XML parsing
Fields§
§disable_dtd: bool
§disable_external_entities: bool
§max_entity_expansions: usize
§max_entity_depth: usize
§max_element_depth: usize
§max_attribute_size: usize
§max_text_size: usize
§max_file_size: usize
§parse_timeout: Duration
§stream_timeout: Duration
§allow_network: bool
§allowed_schemas: Vec<String>
Implementations§
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