pub trait Backend:
Send
+ Sync
+ Debug {
// Required methods
fn id(&self) -> &'static str;
fn supported_formats(&self) -> &'static [OutputFormat];
fn open(
&self,
plate_content: &str,
source: &QuillSource,
json_data: &Value,
) -> Result<RenderSession, RenderError>;
}Expand description
Backend trait for rendering different output formats.
Required Methods§
Sourcefn supported_formats(&self) -> &'static [OutputFormat]
fn supported_formats(&self) -> &'static [OutputFormat]
Get supported output formats.
Sourcefn open(
&self,
plate_content: &str,
source: &QuillSource,
json_data: &Value,
) -> Result<RenderSession, RenderError>
fn open( &self, plate_content: &str, source: &QuillSource, json_data: &Value, ) -> Result<RenderSession, RenderError>
Open an iterative render session from plate + compiled JSON data.