24 lines
527 B
Rust
24 lines
527 B
Rust
![]() |
use std::path::Path;
|
||
|
|
||
|
use serde::Serialize;
|
||
|
|
||
|
use crate::blog_post::PlainText;
|
||
|
use crate::config::Config;
|
||
|
use crate::error::CustomError;
|
||
|
|
||
|
#[derive(Debug, Serialize)]
|
||
|
#[serde(tag = "type")]
|
||
|
#[serde(rename = "heading")]
|
||
|
pub(crate) struct RenderPlainText {}
|
||
|
|
||
|
impl RenderPlainText {
|
||
|
pub(crate) fn new<D: AsRef<Path>, F: AsRef<Path>>(
|
||
|
config: &Config,
|
||
|
output_directory: D,
|
||
|
output_file: F,
|
||
|
heading: &PlainText,
|
||
|
) -> Result<RenderPlainText, CustomError> {
|
||
|
Ok(RenderPlainText {})
|
||
|
}
|
||
|
}
|