pub enum EntityPolicy {
RejectDtd,
AllowDtdNoExternal,
WarnOnEntities,
}Expand description
Policy for handling XML entities and DTDs
Variants§
RejectDtd
Reject XML with DOCTYPE declarations (strictest, recommended)
AllowDtdNoExternal
Allow DOCTYPE but never resolve external entities (default)
WarnOnEntities
Log warnings when DTDs or entity references detected
Trait Implementations§
Source§impl Clone for EntityPolicy
impl Clone for EntityPolicy
Source§fn clone(&self) -> EntityPolicy
fn clone(&self) -> EntityPolicy
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 EntityPolicy
impl Debug for EntityPolicy
Source§impl Default for EntityPolicy
impl Default for EntityPolicy
Source§fn default() -> EntityPolicy
fn default() -> EntityPolicy
Returns the “default value” for a type. Read more
Source§impl PartialEq for EntityPolicy
impl PartialEq for EntityPolicy
impl Copy for EntityPolicy
impl Eq for EntityPolicy
impl StructuralPartialEq for EntityPolicy
Auto Trait Implementations§
impl Freeze for EntityPolicy
impl RefUnwindSafe for EntityPolicy
impl Send for EntityPolicy
impl Sync for EntityPolicy
impl Unpin for EntityPolicy
impl UnwindSafe for EntityPolicy
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