#[non_exhaustive]pub struct BodySectionConfigurationBuilder { /* private fields */ }
Expand description
A builder for BodySectionConfiguration
.
Implementations§
source§impl BodySectionConfigurationBuilder
impl BodySectionConfigurationBuilder
sourcepub fn section_id(self, input: impl Into<String>) -> Self
pub fn section_id(self, input: impl Into<String>) -> Self
The unique identifier of a body section.
This field is required.sourcepub fn set_section_id(self, input: Option<String>) -> Self
pub fn set_section_id(self, input: Option<String>) -> Self
The unique identifier of a body section.
sourcepub fn get_section_id(&self) -> &Option<String>
pub fn get_section_id(&self) -> &Option<String>
The unique identifier of a body section.
sourcepub fn content(self, input: BodySectionContent) -> Self
pub fn content(self, input: BodySectionContent) -> Self
The configuration of content in a body section.
This field is required.sourcepub fn set_content(self, input: Option<BodySectionContent>) -> Self
pub fn set_content(self, input: Option<BodySectionContent>) -> Self
The configuration of content in a body section.
sourcepub fn get_content(&self) -> &Option<BodySectionContent>
pub fn get_content(&self) -> &Option<BodySectionContent>
The configuration of content in a body section.
sourcepub fn style(self, input: SectionStyle) -> Self
pub fn style(self, input: SectionStyle) -> Self
The style options of a body section.
sourcepub fn set_style(self, input: Option<SectionStyle>) -> Self
pub fn set_style(self, input: Option<SectionStyle>) -> Self
The style options of a body section.
sourcepub fn get_style(&self) -> &Option<SectionStyle>
pub fn get_style(&self) -> &Option<SectionStyle>
The style options of a body section.
sourcepub fn page_break_configuration(
self,
input: SectionPageBreakConfiguration
) -> Self
pub fn page_break_configuration( self, input: SectionPageBreakConfiguration ) -> Self
The configuration of a page break for a section.
sourcepub fn set_page_break_configuration(
self,
input: Option<SectionPageBreakConfiguration>
) -> Self
pub fn set_page_break_configuration( self, input: Option<SectionPageBreakConfiguration> ) -> Self
The configuration of a page break for a section.
sourcepub fn get_page_break_configuration(
&self
) -> &Option<SectionPageBreakConfiguration>
pub fn get_page_break_configuration( &self ) -> &Option<SectionPageBreakConfiguration>
The configuration of a page break for a section.
sourcepub fn build(self) -> Result<BodySectionConfiguration, BuildError>
pub fn build(self) -> Result<BodySectionConfiguration, BuildError>
Consumes the builder and constructs a BodySectionConfiguration
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for BodySectionConfigurationBuilder
impl Clone for BodySectionConfigurationBuilder
source§fn clone(&self) -> BodySectionConfigurationBuilder
fn clone(&self) -> BodySectionConfigurationBuilder
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 Default for BodySectionConfigurationBuilder
impl Default for BodySectionConfigurationBuilder
source§fn default() -> BodySectionConfigurationBuilder
fn default() -> BodySectionConfigurationBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for BodySectionConfigurationBuilder
impl PartialEq for BodySectionConfigurationBuilder
source§fn eq(&self, other: &BodySectionConfigurationBuilder) -> bool
fn eq(&self, other: &BodySectionConfigurationBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for BodySectionConfigurationBuilder
Auto Trait Implementations§
impl RefUnwindSafe for BodySectionConfigurationBuilder
impl Send for BodySectionConfigurationBuilder
impl Sync for BodySectionConfigurationBuilder
impl Unpin for BodySectionConfigurationBuilder
impl UnwindSafe for BodySectionConfigurationBuilder
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
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>
Creates a shared type from an unshared type.