pub struct Document {
pub children: Vec<DocumentChild>,
pub section_property: SectionProperty,
pub has_numbering: bool,
}
Fields§
§children: Vec<DocumentChild>
§section_property: SectionProperty
§has_numbering: bool
Implementations§
Source§impl Document
impl Document
pub fn new() -> Document
pub fn add_paragraph(self, p: Paragraph) -> Self
pub fn add_table(self, t: Table) -> Self
pub fn page_size(self, size: PageSize) -> Self
pub fn page_margin(self, margin: PageMargin) -> Self
pub fn page_orient(self, o: PageOrientationType) -> Self
pub fn doc_grid(self, doc_grid: DocGrid) -> Self
pub fn default_section_property(self, property: SectionProperty) -> Self
pub fn header(self, h: Header, rid: &str) -> Self
pub fn first_header(self, h: Header, rid: &str) -> Self
pub fn even_header(self, h: Header, rid: &str) -> Self
pub fn add_structured_data_tag(self, t: StructuredDataTag) -> Self
pub fn add_table_of_contents(self, t: TableOfContents) -> Self
pub fn columns(self, col: usize) -> Self
pub fn text_direction(self, direction: String) -> Self
Trait Implementations§
impl StructuralPartialEq for Document
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