[][src]Struct docx_rs::Docx

pub struct Docx {
    pub content_type: ContentTypes,
    pub rels: Rels,
    pub document_rels: DocumentRels,
    pub doc_props: DocProps,
    pub styles: Styles,
    pub document: Document,
    pub comments: Comments,
    pub numberings: Numberings,
    pub settings: Settings,
    pub font_table: FontTable,
}

Fields

content_type: ContentTypesrels: Relsdocument_rels: DocumentRelsdoc_props: DocPropsstyles: Stylesdocument: Documentcomments: Commentsnumberings: Numberingssettings: Settingsfont_table: FontTable

Methods

impl Docx[src]

pub fn new() -> Docx[src]

pub fn document(self, d: Document) -> Docx[src]

pub fn styles(self, s: Styles) -> Self[src]

pub fn numberings(self, n: Numberings) -> Self[src]

pub fn add_paragraph(self, p: Paragraph) -> Docx[src]

pub fn add_table(self, t: Table) -> Docx[src]

pub fn add_abstract_numbering(self, num: AbstractNumbering) -> Docx[src]

pub fn add_numbering(self, num: Numbering) -> Docx[src]

pub fn created_at(self, date: &str) -> Self[src]

pub fn updated_at(self, date: &str) -> Self[src]

pub fn build(&mut self) -> XMLDocx[src]

pub fn json(&mut self) -> String[src]

Trait Implementations

impl Clone for Docx[src]

impl Debug for Docx[src]

impl Default for Docx[src]

impl PartialEq<Docx> for Docx[src]

impl Serialize for Docx[src]

impl StructuralPartialEq for Docx[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.