pub trait Renderer {
// Required method
fn render(&self, bundle: &SafeBundle) -> Result<Vec<u8>, DocumentError>;
}Expand description
Adapter contract for output renderers.
Renderers consume a crate::SafeBundle and produce a binary payload.
Implementations must respect the manifest contract — every byte they
emit must be either tokenized or non-PII per the bundle’s
gaze::Manifest.
Required Methods§
Sourcefn render(&self, bundle: &SafeBundle) -> Result<Vec<u8>, DocumentError>
fn render(&self, bundle: &SafeBundle) -> Result<Vec<u8>, DocumentError>
Render the bundle into a byte payload (PNG, PDF, …).
§Errors
Implementations return DocumentError on backend failure.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".