pub enum SecurityViolation {
DoctypeDetected,
ExternalEntityDetected,
EntityDeclarationDetected,
ParameterEntityDetected,
DocumentSizeExceeded {
size: usize,
max_size: usize,
},
}Expand description
Security violation types
Variants§
DoctypeDetected
DOCTYPE declaration detected (XXE prevention)
ExternalEntityDetected
External entity reference detected (SYSTEM/PUBLIC)
EntityDeclarationDetected
Entity declaration detected (billion laughs prevention)
ParameterEntityDetected
Parameter entity detected (data exfiltration prevention)
DocumentSizeExceeded
Document size exceeds security limit
Trait Implementations§
Source§impl Clone for SecurityViolation
impl Clone for SecurityViolation
Source§fn clone(&self) -> SecurityViolation
fn clone(&self) -> SecurityViolation
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 SecurityViolation
impl Debug for SecurityViolation
Source§impl Display for SecurityViolation
impl Display for SecurityViolation
Source§impl Error for SecurityViolation
impl Error for SecurityViolation
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl PartialEq for SecurityViolation
impl PartialEq for SecurityViolation
impl Eq for SecurityViolation
impl StructuralPartialEq for SecurityViolation
Auto Trait Implementations§
impl Freeze for SecurityViolation
impl RefUnwindSafe for SecurityViolation
impl Send for SecurityViolation
impl Sync for SecurityViolation
impl Unpin for SecurityViolation
impl UnwindSafe for SecurityViolation
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