natter/src/intermediate/entity.rs

15 lines
308 B
Rust
Raw Normal View History

use super::macros::intermediate;
2023-10-27 17:48:19 -04:00
use super::registry::Registry;
use crate::error::CustomError;
2023-10-27 17:48:19 -04:00
2023-10-29 15:36:15 -04:00
#[derive(Debug, Clone)]
2023-10-27 20:27:50 -04:00
pub(crate) struct IEntity {
pub(crate) html: String,
}
2023-10-27 17:48:19 -04:00
intermediate!(IEntity, Entity, |registry, original| async {
Ok(IEntity {
html: original.html.to_owned(),
})
});