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
Source§fn clone(&self) -> ContentElement
fn clone(&self) -> ContentElement
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ContentElement
impl RefUnwindSafe for ContentElement
impl Send for ContentElement
impl Sync for ContentElement
impl Unpin 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