natter/src/intermediate/entity.rs

23 lines
497 B
Rust
Raw Normal View History

use super::macros::intermediate;
use crate::error::CustomError;
2023-12-21 19:56:58 +00:00
use organic::types::StandardProperties;
2023-10-27 21:48:19 +00:00
2023-10-29 19:36:15 +00:00
#[derive(Debug, Clone)]
2023-10-28 00:27:50 +00:00
pub(crate) struct IEntity {
pub(crate) html: String,
2023-12-21 19:56:58 +00:00
pub(crate) post_blank: organic::types::PostBlank,
2023-10-28 00:27:50 +00:00
}
2023-10-27 21:48:19 +00:00
intermediate!(
IEntity,
&'orig organic::types::Entity<'parse>,
original,
_intermediate_context,
{
Ok(IEntity {
html: original.html.to_owned(),
2023-12-21 19:56:58 +00:00
post_blank: original.get_post_blank(),
})
}
);