Skip to main content

Renderer

Trait Renderer 

Source
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§

Source

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.

Implementors§