pub struct TableOfContents {
pub instr: InstrToC,
pub items: Vec<TableOfContentsItem>,
pub auto: bool,
pub dirty: bool,
pub without_sdt: bool,
pub alias: Option<String>,
pub page_ref_placeholder: Option<String>,
pub before_contents: Vec<TocContent>,
pub after_contents: Vec<TocContent>,
pub delete: Option<TableOfContentsReviewData>,
}
Expand description
https://c-rex.net/projects/samples/ooxml/e1/Part4/OOXML_P4_DOCX_TOCTOC_topic_ID0ELZO1.html This struct is only used by writers
Fields§
§instr: InstrToC
§items: Vec<TableOfContentsItem>
§auto: bool
§dirty: bool
§without_sdt: bool
Skip StructuredDataTag rendering
alias: Option<String>
§page_ref_placeholder: Option<String>
§before_contents: Vec<TocContent>
§after_contents: Vec<TocContent>
§delete: Option<TableOfContentsReviewData>
Implementations§
Source§impl TableOfContents
impl TableOfContents
pub fn new() -> Self
pub fn with_instr_text(s: &str) -> Self
pub fn heading_styles_range(self, start: usize, end: usize) -> Self
pub fn add_style_with_level(self, s: StyleWithLevel) -> Self
pub fn hyperlink(self) -> Self
pub fn alias(self, a: impl Into<String>) -> Self
pub fn delete(self, author: impl Into<String>, date: impl Into<String>) -> Self
pub fn add_item(self, t: TableOfContentsItem) -> Self
pub fn auto(self) -> Self
pub fn dirty(self) -> Self
pub fn add_before_paragraph(self, p: Paragraph) -> Self
pub fn add_after_paragraph(self, p: Paragraph) -> Self
pub fn add_before_table(self, t: Table) -> Self
pub fn add_after_table(self, t: Table) -> Self
pub fn without_sdt(self) -> Self
Trait Implementations§
Source§impl Clone for TableOfContents
impl Clone for TableOfContents
Source§fn clone(&self) -> TableOfContents
fn clone(&self) -> TableOfContents
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TableOfContents
impl Debug for TableOfContents
Source§impl Default for TableOfContents
impl Default for TableOfContents
Source§fn default() -> TableOfContents
fn default() -> TableOfContents
Returns the “default value” for a type. Read more
Source§impl PartialEq for TableOfContents
impl PartialEq for TableOfContents
Source§impl Serialize for TableOfContents
impl Serialize for TableOfContents
impl StructuralPartialEq for TableOfContents
Auto Trait Implementations§
impl Freeze for TableOfContents
impl RefUnwindSafe for TableOfContents
impl Send for TableOfContents
impl Sync for TableOfContents
impl Unpin for TableOfContents
impl UnwindSafe for TableOfContents
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