#[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 get_header_sections(
&self
) -> &Option<Vec<HeaderFooterSectionConfiguration>>
pub fn get_header_sections( &self ) -> &Option<Vec<HeaderFooterSectionConfiguration>>
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.
sourcepub fn get_body_sections(&self) -> &Option<Vec<BodySectionConfiguration>>
pub fn get_body_sections(&self) -> &Option<Vec<BodySectionConfiguration>>
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.
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.
This field is required.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 get_canvas_size_options(
&self
) -> &Option<SectionBasedLayoutCanvasSizeOptions>
pub fn get_canvas_size_options( &self ) -> &Option<SectionBasedLayoutCanvasSizeOptions>
The options for the canvas of a section-based layout.
sourcepub fn build(self) -> Result<SectionBasedLayoutConfiguration, BuildError>
pub fn build(self) -> Result<SectionBasedLayoutConfiguration, BuildError>
Consumes the builder and constructs a SectionBasedLayoutConfiguration
.
This method will fail if any of the following fields are not set:
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 for SectionBasedLayoutConfigurationBuilder
impl PartialEq 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 ==
.