Starting a struct for what will be passed as the context into dust.

This commit is contained in:
Tom Alexander 2023-10-22 15:31:45 -04:00
parent a510d0809f
commit b72aec9d20
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
2 changed files with 9 additions and 0 deletions

View File

@ -1,2 +1,3 @@
mod definition;
mod render_context;
pub(crate) use definition::BlogPost;

View File

@ -0,0 +1,8 @@
use serde::Serialize;
#[derive(Debug, Serialize)]
#[serde(tag = "type")]
#[serde(rename = "blog_post")]
pub(crate) struct RenderBlogPost {
id: String,
}