2023-10-29 21:29:16 +00:00
|
|
|
use super::macros::intermediate;
|
2023-10-30 02:31:29 +00:00
|
|
|
|
2023-10-29 21:29:16 +00:00
|
|
|
use crate::error::CustomError;
|
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-10-27 21:48:19 +00:00
|
|
|
|
2023-12-19 22:09:11 +00:00
|
|
|
intermediate!(
|
|
|
|
IEntity,
|
|
|
|
&'orig organic::types::Entity<'parse>,
|
|
|
|
original,
|
|
|
|
_registry,
|
|
|
|
{
|
|
|
|
Ok(IEntity {
|
|
|
|
html: original.html.to_owned(),
|
|
|
|
})
|
|
|
|
}
|
|
|
|
);
|