Struct roxmltree::ParsingOptions
source · [−]pub struct ParsingOptions {
pub allow_dtd: bool,
}
Expand description
Parsing options.
Fields
allow_dtd: bool
Allow 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 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl 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
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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