Add entity.

This commit is contained in:
Tom Alexander
2023-10-27 20:27:50 -04:00
parent dbea9318e9
commit 793789bdf2
3 changed files with 14 additions and 6 deletions

View File

@@ -3,13 +3,17 @@ use crate::error::CustomError;
use super::registry::Registry;
#[derive(Debug)]
pub(crate) struct IEntity {}
pub(crate) struct IEntity {
pub(crate) html: String,
}
impl IEntity {
pub(crate) async fn new<'parse>(
registry: &mut Registry<'parse>,
original: &organic::types::Entity<'parse>,
) -> Result<IEntity, CustomError> {
Ok(IEntity {})
Ok(IEntity {
html: original.html.to_owned(),
})
}
}