pub struct Abstract {
pub id: Option<String>,
pub children: Vec<Block>,
pub keywords: Vec<String>,
pub sections: Vec<AbstractSection>,
}Expand description
An academic abstract with optional keywords and structured sections.
Fields§
§id: Option<String>Optional unique identifier.
children: Vec<Block>Abstract content blocks.
keywords: Vec<String>Keywords for the paper.
sections: Vec<AbstractSection>Structured sections within the abstract (background, methods, results, conclusions).
Implementations§
Source§impl Abstract
impl Abstract
Sourcepub fn with_keywords(self, keywords: Vec<String>) -> Self
pub fn with_keywords(self, keywords: Vec<String>) -> Self
Add keywords.
Sourcepub fn with_section(self, section: AbstractSection) -> Self
pub fn with_section(self, section: AbstractSection) -> Self
Add a section.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Abstract
impl<'de> Deserialize<'de> for Abstract
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Abstract
Auto Trait Implementations§
impl Freeze for Abstract
impl RefUnwindSafe for Abstract
impl Send for Abstract
impl Sync for Abstract
impl Unpin for Abstract
impl UnsafeUnpin for Abstract
impl UnwindSafe for Abstract
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more