2023-10-24 00:36:08 -04:00
|
|
|
use crate::error::CustomError;
|
|
|
|
|
2023-10-24 00:51:28 -04:00
|
|
|
use super::Object;
|
|
|
|
|
2023-10-24 00:36:08 -04:00
|
|
|
#[derive(Debug)]
|
2023-10-24 00:51:28 -04:00
|
|
|
pub(crate) struct Heading {
|
|
|
|
title: Vec<Object>,
|
|
|
|
}
|
2023-10-24 00:36:08 -04:00
|
|
|
|
|
|
|
impl Heading {
|
|
|
|
pub(crate) fn new(heading: &organic::types::Heading<'_>) -> Result<Heading, CustomError> {
|
2023-10-24 00:51:28 -04:00
|
|
|
Ok(Heading { title: Vec::new() })
|
2023-10-24 00:36:08 -04:00
|
|
|
}
|
|
|
|
}
|