pub struct HtmlOutput {
pub html: String,
pub diagnostics: Vec<Diagnostic>,
}Expand description
The result of generate_html_with_diagnostics: final HTML plus any
warnings from post-processing steps that failed non-fatally.
§Examples
use html_generator::{generator::generate_html_with_diagnostics, HtmlConfig};
let out = generate_html_with_diagnostics("# hello", &HtmlConfig::default()).unwrap();
assert!(out.html.contains("<h1>"));
// diagnostics records what each pipeline step did or skipped:
let _ = out.diagnostics.len();Fields§
§html: StringThe generated HTML content.
diagnostics: Vec<Diagnostic>Diagnostics from pipeline steps that were skipped or degraded. Empty when every step succeeded.
Trait Implementations§
Source§impl Clone for HtmlOutput
impl Clone for HtmlOutput
Source§fn clone(&self) -> HtmlOutput
fn clone(&self) -> HtmlOutput
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 HtmlOutput
impl RefUnwindSafe for HtmlOutput
impl Send for HtmlOutput
impl Sync for HtmlOutput
impl Unpin for HtmlOutput
impl UnsafeUnpin for HtmlOutput
impl UnwindSafe for HtmlOutput
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