pub enum ContentElement {
Heading {
level: u8,
text: String,
byte_offset: u64,
},
Paragraph {
text: String,
byte_offset: u64,
},
CodeBlock {
language: Option<String>,
code: String,
byte_offset: u64,
},
List {
items: Vec<String>,
ordered: bool,
byte_offset: u64,
},
Table {
headers: Vec<String>,
rows: Vec<Vec<String>>,
byte_offset: u64,
},
}Expand description
A structural element in extracted content.
Variants§
Trait Implementations§
Source§impl Clone for ContentElement
impl Clone for ContentElement
Auto Trait Implementations§
impl Freeze for ContentElement
impl RefUnwindSafe for ContentElement
impl Send for ContentElement
impl Sync for ContentElement
impl Unpin for ContentElement
impl UnsafeUnpin for ContentElement
impl UnwindSafe for ContentElement
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