#[non_exhaustive]pub struct LayoutConfigurationBuilder { /* private fields */ }
Expand description
A builder for LayoutConfiguration
.
Implementations§
source§impl LayoutConfigurationBuilder
impl LayoutConfigurationBuilder
sourcepub fn grid_layout(self, input: GridLayoutConfiguration) -> Self
pub fn grid_layout(self, input: GridLayoutConfiguration) -> Self
A type of layout that can be used on a sheet. In a grid layout, visuals snap to a grid with standard spacing and alignment. Dashboards are displayed as designed, with options to fit to screen or view at actual size. A grid layout can be configured to behave in one of two ways when the viewport is resized: FIXED
or RESPONSIVE
.
sourcepub fn set_grid_layout(self, input: Option<GridLayoutConfiguration>) -> Self
pub fn set_grid_layout(self, input: Option<GridLayoutConfiguration>) -> Self
A type of layout that can be used on a sheet. In a grid layout, visuals snap to a grid with standard spacing and alignment. Dashboards are displayed as designed, with options to fit to screen or view at actual size. A grid layout can be configured to behave in one of two ways when the viewport is resized: FIXED
or RESPONSIVE
.
sourcepub fn get_grid_layout(&self) -> &Option<GridLayoutConfiguration>
pub fn get_grid_layout(&self) -> &Option<GridLayoutConfiguration>
A type of layout that can be used on a sheet. In a grid layout, visuals snap to a grid with standard spacing and alignment. Dashboards are displayed as designed, with options to fit to screen or view at actual size. A grid layout can be configured to behave in one of two ways when the viewport is resized: FIXED
or RESPONSIVE
.
sourcepub fn free_form_layout(self, input: FreeFormLayoutConfiguration) -> Self
pub fn free_form_layout(self, input: FreeFormLayoutConfiguration) -> Self
A free-form is optimized for a fixed width and has more control over the exact placement of layout elements.
sourcepub fn set_free_form_layout(
self,
input: Option<FreeFormLayoutConfiguration>
) -> Self
pub fn set_free_form_layout( self, input: Option<FreeFormLayoutConfiguration> ) -> Self
A free-form is optimized for a fixed width and has more control over the exact placement of layout elements.
sourcepub fn get_free_form_layout(&self) -> &Option<FreeFormLayoutConfiguration>
pub fn get_free_form_layout(&self) -> &Option<FreeFormLayoutConfiguration>
A free-form is optimized for a fixed width and has more control over the exact placement of layout elements.
sourcepub fn section_based_layout(
self,
input: SectionBasedLayoutConfiguration
) -> Self
pub fn section_based_layout( self, input: SectionBasedLayoutConfiguration ) -> Self
A section based layout organizes visuals into multiple sections and has customized header, footer and page break.
sourcepub fn set_section_based_layout(
self,
input: Option<SectionBasedLayoutConfiguration>
) -> Self
pub fn set_section_based_layout( self, input: Option<SectionBasedLayoutConfiguration> ) -> Self
A section based layout organizes visuals into multiple sections and has customized header, footer and page break.
sourcepub fn get_section_based_layout(
&self
) -> &Option<SectionBasedLayoutConfiguration>
pub fn get_section_based_layout( &self ) -> &Option<SectionBasedLayoutConfiguration>
A section based layout organizes visuals into multiple sections and has customized header, footer and page break.
sourcepub fn build(self) -> LayoutConfiguration
pub fn build(self) -> LayoutConfiguration
Consumes the builder and constructs a LayoutConfiguration
.
Trait Implementations§
source§impl Clone for LayoutConfigurationBuilder
impl Clone for LayoutConfigurationBuilder
source§fn clone(&self) -> LayoutConfigurationBuilder
fn clone(&self) -> LayoutConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LayoutConfigurationBuilder
impl Debug for LayoutConfigurationBuilder
source§impl Default for LayoutConfigurationBuilder
impl Default for LayoutConfigurationBuilder
source§fn default() -> LayoutConfigurationBuilder
fn default() -> LayoutConfigurationBuilder
source§impl PartialEq for LayoutConfigurationBuilder
impl PartialEq for LayoutConfigurationBuilder
source§fn eq(&self, other: &LayoutConfigurationBuilder) -> bool
fn eq(&self, other: &LayoutConfigurationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.