pub struct EntityPolicy { /* private fields */ }Expand description
Controls entity and external resource handling.
Implementations§
Source§impl EntityPolicy
impl EntityPolicy
pub fn secure() -> Self
pub fn with_external_entities(self, allow: bool) -> Self
pub fn with_network(self, allow: bool) -> Self
pub fn with_filesystem(self, allow: bool) -> Self
pub fn external_entities_allowed(&self) -> bool
pub fn network_allowed(&self) -> bool
pub fn filesystem_allowed(&self) -> bool
pub fn reject_external_entity(&self, entity: &str) -> XmlResult<()>
pub fn reject_doctype(&self) -> XmlResult<()>
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 (const: unstable) · 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
impl Eq for EntityPolicy
Source§impl PartialEq for EntityPolicy
impl PartialEq for EntityPolicy
Source§fn eq(&self, other: &EntityPolicy) -> bool
fn eq(&self, other: &EntityPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.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 UnsafeUnpin 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