pub enum SecurityError {
NestingTooDeep {
depth: usize,
limit: usize,
},
TooManyElements {
count: usize,
limit: usize,
},
TooManyAttributes {
count: usize,
limit: usize,
},
AttributeTooLong {
length: usize,
limit: usize,
},
TextTooLong {
length: usize,
limit: usize,
},
FileTooLarge {
size: usize,
limit: usize,
},
XmlError(String),
}Expand description
Security validation errors
Variants§
NestingTooDeep
TooManyElements
TooManyAttributes
AttributeTooLong
TextTooLong
FileTooLarge
XmlError(String)
Trait Implementations§
Source§impl Debug for SecurityError
impl Debug for SecurityError
Source§impl Display for SecurityError
impl Display for SecurityError
Source§impl Error for SecurityError
impl Error for SecurityError
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 From<SecurityError> for SecureParseError
impl From<SecurityError> for SecureParseError
Source§fn from(source: SecurityError) -> Self
fn from(source: SecurityError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SecurityError
impl RefUnwindSafe for SecurityError
impl Send for SecurityError
impl Sync for SecurityError
impl Unpin for SecurityError
impl UnsafeUnpin for SecurityError
impl UnwindSafe for SecurityError
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