pub trait Exporter: Send + Sync {
// Required methods
fn name(&self) -> &'static str;
fn export(&self, output: &RenderOutput) -> Result<Vec<u8>>;
fn extension(&self) -> &'static str;
fn mime_type(&self) -> &'static str;
}Expand description
The final step: pixels become files
Exporters know how to encode rendered output into the format users actually want - PNG, SVG, JSON, and more.