Struct docx_reader::InstrToC

source ·
pub struct InstrToC {
Show 16 fields pub heading_styles_range: Option<(usize, usize)>, pub tc_field_level_range: Option<(usize, usize)>, pub omit_page_numbers_level_range: Option<(usize, usize)>, pub entry_bookmark_name: Option<String>, pub styles_with_levels: Vec<StyleWithLevel>, pub entry_and_page_number_separator: Option<String>, pub sequence_and_page_numbers_separator: Option<String>, pub caption_label: Option<String>, pub caption_label_including_numbers: Option<String>, pub seq_field_identifier_for_prefix: Option<String>, pub tc_field_identifier: Option<String>, pub hyperlink: bool, pub preserve_tab: bool, pub preserve_new_line: bool, pub use_applied_paragraph_line_level: bool, pub hide_tab_and_page_numbers_in_webview: bool,
}

Fields§

§heading_styles_range: Option<(usize, usize)>§tc_field_level_range: Option<(usize, usize)>§omit_page_numbers_level_range: Option<(usize, usize)>§entry_bookmark_name: Option<String>§styles_with_levels: Vec<StyleWithLevel>§entry_and_page_number_separator: Option<String>§sequence_and_page_numbers_separator: Option<String>§caption_label: Option<String>§caption_label_including_numbers: Option<String>§seq_field_identifier_for_prefix: Option<String>§tc_field_identifier: Option<String>§hyperlink: bool§preserve_tab: bool§preserve_new_line: bool§use_applied_paragraph_line_level: bool§hide_tab_and_page_numbers_in_webview: bool

Implementations§

source§

impl InstrToC

source

pub fn new() -> Self

source

pub fn with_instr_text(s: &str) -> Self

source

pub fn heading_styles_range(self, start: usize, end: usize) -> Self

source

pub fn tc_field_level_range(self, start: usize, end: usize) -> Self

source

pub fn tc_field_identifier(self, t: impl Into<String>) -> Self

source

pub fn omit_page_numbers_level_range(self, start: usize, end: usize) -> Self

source

pub fn entry_and_page_number_separator(self, t: impl Into<String>) -> Self

source

pub fn entry_bookmark_name(self, t: impl Into<String>) -> Self

source

pub fn caption_label(self, t: impl Into<String>) -> Self

source

pub fn caption_label_including_numbers(self, t: impl Into<String>) -> Self

source

pub fn sequence_and_page_numbers_separator(self, t: impl Into<String>) -> Self

source

pub fn seq_field_identifier_for_prefix(self, t: impl Into<String>) -> Self

source

pub fn preserve_tab(self) -> Self

source

pub fn preserve_new_line(self) -> Self

source

pub fn use_applied_paragraph_line_level(self) -> Self

source

pub fn hide_tab_and_page_numbers_in_webview(self) -> Self

source

pub fn add_style_with_level(self, s: StyleWithLevel) -> Self

Trait Implementations§

source§

impl Clone for InstrToC

source§

fn clone(&self) -> InstrToC

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for InstrToC

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for InstrToC

source§

fn default() -> InstrToC

Returns the “default value” for a type. Read more
source§

impl FromStr for InstrToC

§

type Err = ()

The associated error which can be returned from parsing.
source§

fn from_str(instr: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
source§

impl PartialEq for InstrToC

source§

fn eq(&self, other: &InstrToC) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for InstrToC

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl StructuralPartialEq for InstrToC

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.