#[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 ==
.impl StructuralPartialEq for LayoutConfigurationBuilder
Auto Trait Implementations§
impl Freeze for LayoutConfigurationBuilder
impl RefUnwindSafe for LayoutConfigurationBuilder
impl Send for LayoutConfigurationBuilder
impl Sync for LayoutConfigurationBuilder
impl Unpin for LayoutConfigurationBuilder
impl UnwindSafe for LayoutConfigurationBuilder
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> 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