Struct roxmltree::ParsingOptions
source · [−]pub struct ParsingOptions {
pub allow_dtd: bool,
}Expand description
Parsing options.
Fields
allow_dtd: boolAllow DTD parsing.
When set to false, XML with DTD will cause an error.
Empty DTD block is not an error.
Currently, there is no option to simply skip DTD.
Mainly because you will get UnknownEntityReference error later anyway.
This flag is set to false by default for security reasons,
but roxmltree still has checks for billion laughs attack,
so this is just an extra security measure.
Default: false
Trait Implementations
sourceimpl Clone for ParsingOptions
impl Clone for ParsingOptions
sourcefn clone(&self) -> ParsingOptions
fn clone(&self) -> ParsingOptions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for ParsingOptions
impl Debug for ParsingOptions
sourceimpl Default for ParsingOptions
impl Default for ParsingOptions
sourceimpl PartialEq<ParsingOptions> for ParsingOptions
impl PartialEq<ParsingOptions> for ParsingOptions
sourcefn eq(&self, other: &ParsingOptions) -> bool
fn eq(&self, other: &ParsingOptions) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &ParsingOptions) -> bool
fn ne(&self, other: &ParsingOptions) -> bool
This method tests for !=.
impl Copy for ParsingOptions
impl StructuralPartialEq for ParsingOptions
Auto Trait Implementations
impl RefUnwindSafe for ParsingOptions
impl Send for ParsingOptions
impl Sync for ParsingOptions
impl Unpin for ParsingOptions
impl UnwindSafe for ParsingOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more