Struct docx_reader::Docx
source · pub struct Docx {Show 19 fields
pub content_type: ContentTypes,
pub rels: Rels,
pub document_rels: DocumentRels,
pub doc_props: DocProps,
pub styles: Styles,
pub document: Document,
pub numberings: Numberings,
pub settings: Settings,
pub font_table: FontTable,
pub media: Vec<(String, Vec<u8>)>,
pub web_settings: WebSettings,
pub taskpanes: Option<Taskpanes>,
pub taskpanes_rels: TaskpanesRels,
pub web_extensions: Vec<WebExtension>,
pub custom_item_props: Vec<CustomItemProperty>,
pub custom_item_rels: Vec<CustomItemRels>,
pub themes: Vec<Theme>,
pub images: Vec<(String, String, Image, Png)>,
pub hyperlinks: Vec<(String, String, String)>,
}Fields§
§content_type: ContentTypes§rels: Rels§document_rels: DocumentRels§doc_props: DocProps§styles: Styles§document: Document§numberings: Numberings§settings: Settings§font_table: FontTable§media: Vec<(String, Vec<u8>)>§web_settings: WebSettings§taskpanes: Option<Taskpanes>§taskpanes_rels: TaskpanesRels§web_extensions: Vec<WebExtension>§custom_item_props: Vec<CustomItemProperty>§custom_item_rels: Vec<CustomItemRels>§themes: Vec<Theme>§images: Vec<(String, String, Image, Png)>§hyperlinks: Vec<(String, String, String)>Implementations§
source§impl Docx
impl Docx
pub fn new() -> Docx
pub fn document(self, d: Document) -> Docx
pub fn styles(self, s: Styles) -> Self
pub fn add_style(self, s: Style) -> Self
pub fn numberings(self, n: Numberings) -> Self
pub fn settings(self, s: Settings) -> Self
pub fn add_paragraph(self, p: Paragraph) -> Docx
pub fn add_structured_data_tag(self, t: StructuredDataTag) -> Docx
pub fn add_table_of_contents(self, t: TableOfContents) -> Docx
pub fn add_table(self, t: Table) -> Docx
pub fn header(self, header: Header) -> Self
pub fn first_header(self, header: Header) -> Self
pub fn even_header(self, header: Header) -> Self
pub fn add_abstract_numbering(self, num: AbstractNumbering) -> Docx
pub fn add_numbering(self, num: Numbering) -> Docx
pub fn created_at(self, date: &str) -> Self
pub fn updated_at(self, date: &str) -> Self
pub fn custom_property( self, name: impl Into<String>, item: impl Into<String> ) -> Self
pub fn doc_id(self, id: &str) -> Self
pub fn default_tab_stop(self, stop: usize) -> Self
pub fn add_doc_var(self, name: &str, val: &str) -> Self
pub fn page_size(self, w: u32, h: u32) -> Self
pub fn page_margin(self, margin: PageMargin) -> Self
pub fn page_orient(self, o: PageOrientationType) -> Self
pub fn default_size(self, size: usize) -> Self
pub fn default_spacing(self, spacing: i32) -> Self
pub fn default_fonts(self, font: RunFonts) -> Self
pub fn taskpanes(self) -> Self
pub fn web_extension(self, ext: WebExtension) -> Self
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Docx
impl Send for Docx
impl Sync for Docx
impl Unpin for Docx
impl UnwindSafe for Docx
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