Introduce the corresponding non-render types.

This commit is contained in:
Tom Alexander
2023-10-24 00:36:08 -04:00
parent 3b472a9e96
commit 2b7a19a1d4
19 changed files with 91 additions and 10 deletions

View File

@@ -0,0 +1,11 @@
use serde::Serialize;
use super::RenderHeading;
use super::RenderSection;
#[derive(Debug, Serialize)]
#[serde(untagged)]
pub(crate) enum RenderDocumentElement {
Heading(RenderHeading),
Section(RenderSection),
}