natter/src/intermediate/entity.rs
Tom Alexander f98a09bc59
Use macros for creating the intermediate stage.
This is to make it easier to change function signatures by consolidating the places where the signatures exist.
2023-10-29 18:46:14 -04:00

15 lines
308 B
Rust

use super::macros::intermediate;
use super::registry::Registry;
use crate::error::CustomError;
#[derive(Debug, Clone)]
pub(crate) struct IEntity {
pub(crate) html: String,
}
intermediate!(IEntity, Entity, |registry, original| async {
Ok(IEntity {
html: original.html.to_owned(),
})
});