#[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 repeat_configuration(self, input: BodySectionRepeatConfiguration) -> Self
pub fn repeat_configuration(self, input: BodySectionRepeatConfiguration) -> Self
Describes the configurations that are required to declare a section as repeating.
sourcepub fn set_repeat_configuration(
self,
input: Option<BodySectionRepeatConfiguration>,
) -> Self
pub fn set_repeat_configuration( self, input: Option<BodySectionRepeatConfiguration>, ) -> Self
Describes the configurations that are required to declare a section as repeating.
sourcepub fn get_repeat_configuration(
&self,
) -> &Option<BodySectionRepeatConfiguration>
pub fn get_repeat_configuration( &self, ) -> &Option<BodySectionRepeatConfiguration>
Describes the configurations that are required to declare a section as repeating.
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
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for BodySectionConfigurationBuilder
impl Default for BodySectionConfigurationBuilder
source§fn default() -> BodySectionConfigurationBuilder
fn default() -> BodySectionConfigurationBuilder
source§impl PartialEq for BodySectionConfigurationBuilder
impl PartialEq for BodySectionConfigurationBuilder
source§fn eq(&self, other: &BodySectionConfigurationBuilder) -> bool
fn eq(&self, other: &BodySectionConfigurationBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for BodySectionConfigurationBuilder
Auto Trait Implementations§
impl Freeze for BodySectionConfigurationBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
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