pub enum WarningKind {
ImageExtractionFailed,
EncodingFallback,
TruncatedInput,
MalformedHtml,
SanitizationApplied,
DepthLimitExceeded,
}Expand description
Categories of processing warnings.
Variants§
ImageExtractionFailed
An image could not be extracted (e.g. invalid data URI, unsupported format).
EncodingFallback
The input encoding was not recognized; fell back to UTF-8.
TruncatedInput
The input was truncated due to size limits.
MalformedHtml
The HTML was malformed but processing continued with best effort.
SanitizationApplied
Sanitization was applied to remove potentially unsafe content.
DepthLimitExceeded
DOM traversal was truncated because max_depth was exceeded.
Trait Implementations§
Source§impl Clone for WarningKind
impl Clone for WarningKind
Source§fn clone(&self) -> WarningKind
fn clone(&self) -> WarningKind
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 WarningKind
impl Debug for WarningKind
Source§impl<'de> Deserialize<'de> for WarningKind
impl<'de> Deserialize<'de> for WarningKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for WarningKind
impl PartialEq for WarningKind
Source§impl Serialize for WarningKind
impl Serialize for WarningKind
impl Copy for WarningKind
impl Eq for WarningKind
impl StructuralPartialEq for WarningKind
Auto Trait Implementations§
impl Freeze for WarningKind
impl RefUnwindSafe for WarningKind
impl Send for WarningKind
impl Sync for WarningKind
impl Unpin for WarningKind
impl UnsafeUnpin for WarningKind
impl UnwindSafe for WarningKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.