pub struct ProcessingWarning {
pub message: String,
pub kind: WarningKind,
}Expand description
A non-fatal diagnostic produced during HTML conversion.
Warnings indicate that conversion completed but some content may have been handled differently than expected — for example, an image that could not be extracted, a truncated input, or malformed HTML that was repaired with best-effort parsing.
Conversion always succeeds (returns crate::ConversionResult) even when warnings are
present. Callers should inspect crate::ConversionResult::warnings and decide how to
handle them based on their tolerance for partial results:
- Logging pipelines: emit each warning at
WARNlevel and continue. - Strict pipelines: treat any warning as a hard error by checking
result.warnings.is_empty()before using the output.
See WarningKind for the full taxonomy of warning categories.
Fields§
§message: StringHuman-readable warning message.
kind: WarningKindThe category of warning.
Trait Implementations§
Source§impl Clone for ProcessingWarning
impl Clone for ProcessingWarning
Source§fn clone(&self) -> ProcessingWarning
fn clone(&self) -> ProcessingWarning
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 moreAuto Trait Implementations§
impl Freeze for ProcessingWarning
impl RefUnwindSafe for ProcessingWarning
impl Send for ProcessingWarning
impl Sync for ProcessingWarning
impl Unpin for ProcessingWarning
impl UnsafeUnpin for ProcessingWarning
impl UnwindSafe for ProcessingWarning
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