pub struct HtmlExporter { /* private fields */ }Expand description
HTML exporter for generating styled HTML reports.
Produces complete HTML documents with embedded CSS styling, making them suitable for viewing in any web browser without external dependencies.
§Examples
use sublime_cli_tools::output::export::{HtmlExporter, Exporter};
use serde_json::json;
let exporter = HtmlExporter::new("Audit Report");
let data = json!({
"packages": 5,
"issues": 2
});
let html = exporter.export(&data)?;
std::fs::write("report.html", html)?;Implementations§
Trait Implementations§
Source§impl Clone for HtmlExporter
impl Clone for HtmlExporter
Source§fn clone(&self) -> HtmlExporter
fn clone(&self) -> HtmlExporter
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 HtmlExporter
impl Debug for HtmlExporter
Auto Trait Implementations§
impl Freeze for HtmlExporter
impl RefUnwindSafe for HtmlExporter
impl Send for HtmlExporter
impl Sync for HtmlExporter
impl Unpin for HtmlExporter
impl UnwindSafe for HtmlExporter
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