#[non_exhaustive]pub struct SectionBasedLayoutConfiguration {
pub header_sections: Vec<HeaderFooterSectionConfiguration>,
pub body_sections: Vec<BodySectionConfiguration>,
pub footer_sections: Vec<HeaderFooterSectionConfiguration>,
pub canvas_size_options: Option<SectionBasedLayoutCanvasSizeOptions>,
}Expand description
The configuration for a section-based layout.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.header_sections: Vec<HeaderFooterSectionConfiguration>A list of header section configurations.
body_sections: Vec<BodySectionConfiguration>A list of body section configurations.
A list of footer section configurations.
canvas_size_options: Option<SectionBasedLayoutCanvasSizeOptions>The options for the canvas of a section-based layout.
Implementations§
source§impl SectionBasedLayoutConfiguration
impl SectionBasedLayoutConfiguration
sourcepub fn header_sections(&self) -> &[HeaderFooterSectionConfiguration]
pub fn header_sections(&self) -> &[HeaderFooterSectionConfiguration]
A list of header section configurations.
sourcepub fn body_sections(&self) -> &[BodySectionConfiguration]
pub fn body_sections(&self) -> &[BodySectionConfiguration]
A list of body section configurations.
A list of footer section configurations.
sourcepub fn canvas_size_options(
&self,
) -> Option<&SectionBasedLayoutCanvasSizeOptions>
pub fn canvas_size_options( &self, ) -> Option<&SectionBasedLayoutCanvasSizeOptions>
The options for the canvas of a section-based layout.
source§impl SectionBasedLayoutConfiguration
impl SectionBasedLayoutConfiguration
sourcepub fn builder() -> SectionBasedLayoutConfigurationBuilder
pub fn builder() -> SectionBasedLayoutConfigurationBuilder
Creates a new builder-style object to manufacture SectionBasedLayoutConfiguration.
Trait Implementations§
source§impl Clone for SectionBasedLayoutConfiguration
impl Clone for SectionBasedLayoutConfiguration
source§fn clone(&self) -> SectionBasedLayoutConfiguration
fn clone(&self) -> SectionBasedLayoutConfiguration
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 PartialEq for SectionBasedLayoutConfiguration
impl PartialEq for SectionBasedLayoutConfiguration
source§fn eq(&self, other: &SectionBasedLayoutConfiguration) -> bool
fn eq(&self, other: &SectionBasedLayoutConfiguration) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for SectionBasedLayoutConfiguration
Auto Trait Implementations§
impl Freeze for SectionBasedLayoutConfiguration
impl RefUnwindSafe for SectionBasedLayoutConfiguration
impl Send for SectionBasedLayoutConfiguration
impl Sync for SectionBasedLayoutConfiguration
impl Unpin for SectionBasedLayoutConfiguration
impl UnwindSafe for SectionBasedLayoutConfiguration
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> 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)
🔬This is a nightly-only experimental API. (
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.