pub struct Docx<'a> {Show 16 fields
pub app: Option<App<'a>>,
pub core: Option<Core<'a>>,
pub content_types: ContentTypes<'a>,
pub document: Document<'a>,
pub font_table: Option<FontTable<'a>>,
pub styles: Styles<'a>,
pub rels: Relationships<'a>,
pub document_rels: Option<Relationships<'a>>,
pub headers: HashMap<String, Header<'a>>,
pub footers: HashMap<String, Footer<'a>>,
pub themes: HashMap<String, Theme<'a>>,
pub footnotes: Option<FootNotes<'a>>,
pub endnotes: Option<EndNotes<'a>>,
pub settings: Option<Settings<'a>>,
pub web_settings: Option<WebSettings>,
pub comments: Option<Comments<'a>>,
}
Expand description
A WordprocessingML package
Fields
app: Option<App<'a>>
Specifies package-level properties part
core: Option<Core<'a>>
Specifies core properties part
content_types: ContentTypes<'a>
Specifies the content type of relationship parts and the main document part.
document: Document<'a>
Specifies the main document part.
font_table: Option<FontTable<'a>>
Specifies the font table part
styles: Styles<'a>
Specifies the style definitions part
rels: Relationships<'a>
Specifies the package-level relationship to the main document part
document_rels: Option<Relationships<'a>>
Specifies the part-level relationship to the main document part
headers: HashMap<String, Header<'a>>
themes: HashMap<String, Theme<'a>>
footnotes: Option<FootNotes<'a>>
endnotes: Option<EndNotes<'a>>
settings: Option<Settings<'a>>
web_settings: Option<WebSettings>
comments: Option<Comments<'a>>
Implementations
sourceimpl<'a> Docx<'a>
impl<'a> Docx<'a>
pub fn write<W: Write + Seek>(&'a mut self, writer: W) -> DocxResult<W>
pub fn write_file<P: AsRef<Path>>(&'a mut self, path: P) -> DocxResult<File>
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Docx<'a>
impl<'a> Send for Docx<'a>
impl<'a> Sync for Docx<'a>
impl<'a> Unpin for Docx<'a>
impl<'a> UnwindSafe for Docx<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more