#[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 ==.impl StructuralPartialEq for SectionBasedLayoutConfigurationBuilder
Auto Trait Implementations§
impl Freeze for SectionBasedLayoutConfigurationBuilder
impl RefUnwindSafe for SectionBasedLayoutConfigurationBuilder
impl Send for SectionBasedLayoutConfigurationBuilder
impl Sync for SectionBasedLayoutConfigurationBuilder
impl Unpin for SectionBasedLayoutConfigurationBuilder
impl UnwindSafe for SectionBasedLayoutConfigurationBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more