Struct roxmltree::ParsingOptions [−][src]
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
impl Clone for ParsingOptions
[src]
fn clone(&self) -> ParsingOptions
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ParsingOptions
[src]
impl Debug for ParsingOptions
[src]
impl Default for ParsingOptions
[src]
impl PartialEq<ParsingOptions> for ParsingOptions
[src]
fn eq(&self, other: &ParsingOptions) -> bool
[src]
fn ne(&self, other: &ParsingOptions) -> bool
[src]
impl StructuralPartialEq for ParsingOptions
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,