pub struct SectionProperties {Show 27 fields
pub rsid_r_pr: Option<STLongHexNumber>,
pub rsid_del: Option<STLongHexNumber>,
pub rsid_r: Option<STLongHexNumber>,
pub rsid_sect: Option<STLongHexNumber>,
pub header_footer_refs: Vec<HeaderFooterRef>,
pub footnote_pr: Option<Box<CTFtnProps>>,
pub endnote_pr: Option<Box<CTEdnProps>>,
pub type: Option<Box<CTSectType>>,
pub pg_sz: Option<Box<PageSize>>,
pub pg_mar: Option<Box<PageMargins>>,
pub paper_src: Option<Box<CTPaperSource>>,
pub pg_borders: Option<Box<CTPageBorders>>,
pub ln_num_type: Option<Box<CTLineNumber>>,
pub pg_num_type: Option<Box<CTPageNumber>>,
pub cols: Option<Box<Columns>>,
pub form_prot: Option<Box<OnOffElement>>,
pub v_align: Option<Box<CTVerticalJc>>,
pub no_endnote: Option<Box<OnOffElement>>,
pub title_pg: Option<Box<OnOffElement>>,
pub text_direction: Option<Box<CTTextDirection>>,
pub bidi: Option<Box<OnOffElement>>,
pub rtl_gutter: Option<Box<OnOffElement>>,
pub doc_grid: Option<Box<DocumentGrid>>,
pub printer_settings: Option<Box<CTRel>>,
pub sect_pr_change: Option<Box<CTSectPrChange>>,
pub extra_attrs: HashMap<String, String>,
pub extra_children: Vec<PositionedNode>,
}Fields§
§rsid_r_pr: Option<STLongHexNumber>§rsid_del: Option<STLongHexNumber>§rsid_r: Option<STLongHexNumber>§rsid_sect: Option<STLongHexNumber>§footnote_pr: Option<Box<CTFtnProps>>§endnote_pr: Option<Box<CTEdnProps>>§type: Option<Box<CTSectType>>§pg_sz: Option<Box<PageSize>>§pg_mar: Option<Box<PageMargins>>§paper_src: Option<Box<CTPaperSource>>§pg_borders: Option<Box<CTPageBorders>>§ln_num_type: Option<Box<CTLineNumber>>§pg_num_type: Option<Box<CTPageNumber>>§cols: Option<Box<Columns>>§form_prot: Option<Box<OnOffElement>>§v_align: Option<Box<CTVerticalJc>>§no_endnote: Option<Box<OnOffElement>>§title_pg: Option<Box<OnOffElement>>§text_direction: Option<Box<CTTextDirection>>§bidi: Option<Box<OnOffElement>>§rtl_gutter: Option<Box<OnOffElement>>§doc_grid: Option<Box<DocumentGrid>>§printer_settings: Option<Box<CTRel>>§sect_pr_change: Option<Box<CTSectPrChange>>§extra_attrs: HashMap<String, String>Unknown attributes captured for roundtrip fidelity.
extra_children: Vec<PositionedNode>Unknown child elements captured for roundtrip fidelity.
Trait Implementations§
Source§impl Clone for SectionProperties
impl Clone for SectionProperties
Source§fn clone(&self) -> SectionProperties
fn clone(&self) -> SectionProperties
Returns a duplicate 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 SectionProperties
impl Debug for SectionProperties
Source§impl Default for SectionProperties
impl Default for SectionProperties
Source§fn default() -> SectionProperties
fn default() -> SectionProperties
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SectionProperties
impl<'de> Deserialize<'de> for SectionProperties
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromXml for SectionProperties
impl FromXml for SectionProperties
Source§fn from_xml<R: BufRead>(
reader: &mut Reader<R>,
start_tag: &BytesStart<'_>,
is_empty: bool,
) -> Result<Self, ParseError>
fn from_xml<R: BufRead>( reader: &mut Reader<R>, start_tag: &BytesStart<'_>, is_empty: bool, ) -> Result<Self, ParseError>
Parse from an XML reader positioned at the start tag. Read more
Source§impl SectionPropertiesExt for SectionProperties
Available on crate feature wml-layout only.
impl SectionPropertiesExt for SectionProperties
Available on crate feature
wml-layout only.Source§fn page_margins(&self) -> Option<&PageMargins>
fn page_margins(&self) -> Option<&PageMargins>
Get the page margins element.
Source§fn page_width_twips(&self) -> Option<u64>
fn page_width_twips(&self) -> Option<u64>
Get page width in twips.
Source§fn page_height_twips(&self) -> Option<u64>
fn page_height_twips(&self) -> Option<u64>
Get page height in twips.
Source§fn page_orientation(&self) -> Option<&STPageOrientation>
fn page_orientation(&self) -> Option<&STPageOrientation>
Get page orientation.
Source§fn has_title_page(&self) -> bool
fn has_title_page(&self) -> bool
Check if the section has a distinct title (first) page.
Source§fn header_references(&self) -> Vec<(&STHdrFtr, &str)>
fn header_references(&self) -> Vec<(&STHdrFtr, &str)>
Get header references (type + relationship ID from extra_attrs).
Get footer references (type + relationship ID from extra_attrs).
Source§impl Serialize for SectionProperties
impl Serialize for SectionProperties
Source§impl ToXml for SectionProperties
impl ToXml for SectionProperties
Source§fn write_attrs<'a>(&self, start: BytesStart<'a>) -> BytesStart<'a>
fn write_attrs<'a>(&self, start: BytesStart<'a>) -> BytesStart<'a>
Write attributes onto the start tag and return it.
Source§fn write_children<W: Write>(
&self,
writer: &mut Writer<W>,
) -> Result<(), SerializeError>
fn write_children<W: Write>( &self, writer: &mut Writer<W>, ) -> Result<(), SerializeError>
Write child elements and text content inside the element.
Source§fn is_empty_element(&self) -> bool
fn is_empty_element(&self) -> bool
Whether this element has no children (self-closing).
Source§fn write_element<W>(
&self,
tag: &str,
writer: &mut Writer<W>,
) -> Result<(), SerializeError>where
W: Write,
fn write_element<W>(
&self,
tag: &str,
writer: &mut Writer<W>,
) -> Result<(), SerializeError>where
W: Write,
Write a complete element:
<tag attrs>children</tag> or <tag attrs/>.Auto Trait Implementations§
impl Freeze for SectionProperties
impl RefUnwindSafe for SectionProperties
impl Send for SectionProperties
impl Sync for SectionProperties
impl Unpin for SectionProperties
impl UnsafeUnpin for SectionProperties
impl UnwindSafe for SectionProperties
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