#[non_exhaustive]pub struct SectionBasedLayoutConfigurationBuilder { /* private fields */ }Expand description
A builder for SectionBasedLayoutConfiguration.
Implementations§
source§impl SectionBasedLayoutConfigurationBuilder
impl SectionBasedLayoutConfigurationBuilder
sourcepub fn header_sections(self, input: HeaderFooterSectionConfiguration) -> Self
pub fn header_sections(self, input: HeaderFooterSectionConfiguration) -> Self
Appends an item to header_sections.
To override the contents of this collection use set_header_sections.
A list of header section configurations.
sourcepub fn set_header_sections(
self,
input: Option<Vec<HeaderFooterSectionConfiguration>>
) -> Self
pub fn set_header_sections( self, input: Option<Vec<HeaderFooterSectionConfiguration>> ) -> Self
A list of header section configurations.
sourcepub fn body_sections(self, input: BodySectionConfiguration) -> Self
pub fn body_sections(self, input: BodySectionConfiguration) -> Self
Appends an item to body_sections.
To override the contents of this collection use set_body_sections.
A list of body section configurations.
sourcepub fn set_body_sections(
self,
input: Option<Vec<BodySectionConfiguration>>
) -> Self
pub fn set_body_sections( self, input: Option<Vec<BodySectionConfiguration>> ) -> Self
A list of body section configurations.
Appends an item to footer_sections.
To override the contents of this collection use set_footer_sections.
A list of footer section configurations.
A list of footer section configurations.
sourcepub fn canvas_size_options(
self,
input: SectionBasedLayoutCanvasSizeOptions
) -> Self
pub fn canvas_size_options( self, input: SectionBasedLayoutCanvasSizeOptions ) -> Self
The options for the canvas of a section-based layout.
sourcepub fn set_canvas_size_options(
self,
input: Option<SectionBasedLayoutCanvasSizeOptions>
) -> Self
pub fn set_canvas_size_options( self, input: Option<SectionBasedLayoutCanvasSizeOptions> ) -> Self
The options for the canvas of a section-based layout.
sourcepub fn build(self) -> SectionBasedLayoutConfiguration
pub fn build(self) -> SectionBasedLayoutConfiguration
Consumes the builder and constructs a SectionBasedLayoutConfiguration.
Trait Implementations§
source§impl Clone for SectionBasedLayoutConfigurationBuilder
impl Clone for SectionBasedLayoutConfigurationBuilder
source§fn clone(&self) -> SectionBasedLayoutConfigurationBuilder
fn clone(&self) -> SectionBasedLayoutConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for SectionBasedLayoutConfigurationBuilder
impl Default for SectionBasedLayoutConfigurationBuilder
source§fn default() -> SectionBasedLayoutConfigurationBuilder
fn default() -> SectionBasedLayoutConfigurationBuilder
source§impl PartialEq<SectionBasedLayoutConfigurationBuilder> for SectionBasedLayoutConfigurationBuilder
impl PartialEq<SectionBasedLayoutConfigurationBuilder> for SectionBasedLayoutConfigurationBuilder
source§fn eq(&self, other: &SectionBasedLayoutConfigurationBuilder) -> bool
fn eq(&self, other: &SectionBasedLayoutConfigurationBuilder) -> bool
self and other values to be equal, and is used
by ==.