pub struct SectionProperty {Show 20 fields
pub page_size: PageSize,
pub page_margin: PageMargin,
pub columns: usize,
pub space: usize,
pub title_pg: bool,
pub text_direction: String,
pub doc_grid: Option<DocGrid>,
pub header_reference: Option<HeaderReference>,
pub header: Option<Header>,
pub first_header_reference: Option<HeaderReference>,
pub first_header: Option<Header>,
pub even_header_reference: Option<HeaderReference>,
pub even_header: Option<Header>,
pub footer_reference: Option<FooterReference>,
pub footer: Option<Footer>,
pub first_footer_reference: Option<FooterReference>,
pub first_footer: Option<Footer>,
pub even_footer_reference: Option<FooterReference>,
pub even_footer: Option<Footer>,
pub section_type: Option<SectionType>,
}
Fields§
§page_size: PageSize
§page_margin: PageMargin
§columns: usize
§space: usize
§title_pg: bool
§text_direction: String
§doc_grid: Option<DocGrid>
§header_reference: Option<HeaderReference>
§header: Option<Header>
§first_header_reference: Option<HeaderReference>
§first_header: Option<Header>
§even_header_reference: Option<HeaderReference>
§even_header: Option<Header>
§section_type: Option<SectionType>
Implementations§
Source§impl SectionProperty
impl SectionProperty
pub fn new() -> SectionProperty
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 text_direction(self, direction: String) -> Self
pub fn title_pg(self) -> Self
pub fn header(self, h: Header, rid: &str) -> Self
pub fn first_header(self, h: Header, rid: &str) -> Self
pub fn first_header_without_title_pg(self, h: Header, rid: &str) -> Self
pub fn even_header(self, h: Header, rid: &str) -> Self
pub fn get_headers(&self) -> Vec<&Header>
Trait Implementations§
Source§impl Clone for SectionProperty
impl Clone for SectionProperty
Source§fn clone(&self) -> SectionProperty
fn clone(&self) -> SectionProperty
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 SectionProperty
impl Debug for SectionProperty
Source§impl Default for SectionProperty
impl Default for SectionProperty
Source§impl ElementReader for SectionProperty
impl ElementReader for SectionProperty
fn read<R: Read>( r: &mut EventReader<R>, _attrs: &[OwnedAttribute], ) -> Result<Self, ReaderError>
Source§impl PartialEq for SectionProperty
impl PartialEq for SectionProperty
Source§impl Serialize for SectionProperty
impl Serialize for SectionProperty
impl StructuralPartialEq for SectionProperty
Auto Trait Implementations§
impl Freeze for SectionProperty
impl RefUnwindSafe for SectionProperty
impl Send for SectionProperty
impl Sync for SectionProperty
impl Unpin for SectionProperty
impl UnwindSafe for SectionProperty
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