texted2/content/
content_renderer.rs

1use std::io;
2
3use crate::content::Content;
4use crate::content::content_file::ContentFile;
5
6#[derive(Clone)]
7pub struct ImagePrefix(pub String);
8
9#[derive(Clone)]
10pub enum RenderOptions {
11    PreviewOnly(ImagePrefix),
12    FullContent,
13}
14
15pub trait ContentRenderer {
16    fn render(content_file: &ContentFile, render_options: RenderOptions) -> io::Result<Content>;
17}