pub struct Document {
pub paragraphs: Vec<Paragraph>,
pub tables: Vec<Table>,
pub lists: Vec<ListItem>,
pub headers: Vec<HeaderFooter>,
pub footers: Vec<HeaderFooter>,
pub footnotes: Vec<Note>,
pub endnotes: Vec<Note>,
}Fields§
§paragraphs: Vec<Paragraph>§tables: Vec<Table>§lists: Vec<ListItem>§headers: Vec<HeaderFooter>§footnotes: Vec<Note>§endnotes: Vec<Note>Implementations§
Source§impl Document
impl Document
pub fn new() -> Self
pub fn extract_text(&self) -> String
pub fn extract_text_with_options(&self, options: &ExtractOptions) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Document
impl RefUnwindSafe for Document
impl Send for Document
impl Sync for Document
impl Unpin for Document
impl UnwindSafe for Document
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