#[non_exhaustive]pub struct GridLayoutScreenCanvasSizeOptions {
pub resize_option: ResizeOption,
pub optimized_view_port_width: Option<String>,
}
Expand description
The options that determine the sizing of the canvas used in a grid layout.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.resize_option: ResizeOption
This value determines the layout behavior when the viewport is resized.
-
FIXED
: A fixed width will be used when optimizing the layout. In the Amazon QuickSight console, this option is calledClassic
. -
RESPONSIVE
: The width of the canvas will be responsive and optimized to the view port. In the Amazon QuickSight console, this option is calledTiled
.
optimized_view_port_width: Option<String>
The width that the view port will be optimized for when the layout renders.
Implementations§
source§impl GridLayoutScreenCanvasSizeOptions
impl GridLayoutScreenCanvasSizeOptions
sourcepub fn resize_option(&self) -> &ResizeOption
pub fn resize_option(&self) -> &ResizeOption
This value determines the layout behavior when the viewport is resized.
-
FIXED
: A fixed width will be used when optimizing the layout. In the Amazon QuickSight console, this option is calledClassic
. -
RESPONSIVE
: The width of the canvas will be responsive and optimized to the view port. In the Amazon QuickSight console, this option is calledTiled
.
sourcepub fn optimized_view_port_width(&self) -> Option<&str>
pub fn optimized_view_port_width(&self) -> Option<&str>
The width that the view port will be optimized for when the layout renders.
source§impl GridLayoutScreenCanvasSizeOptions
impl GridLayoutScreenCanvasSizeOptions
sourcepub fn builder() -> GridLayoutScreenCanvasSizeOptionsBuilder
pub fn builder() -> GridLayoutScreenCanvasSizeOptionsBuilder
Creates a new builder-style object to manufacture GridLayoutScreenCanvasSizeOptions
.
Trait Implementations§
source§impl Clone for GridLayoutScreenCanvasSizeOptions
impl Clone for GridLayoutScreenCanvasSizeOptions
source§fn clone(&self) -> GridLayoutScreenCanvasSizeOptions
fn clone(&self) -> GridLayoutScreenCanvasSizeOptions
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for GridLayoutScreenCanvasSizeOptions
impl PartialEq for GridLayoutScreenCanvasSizeOptions
source§fn eq(&self, other: &GridLayoutScreenCanvasSizeOptions) -> bool
fn eq(&self, other: &GridLayoutScreenCanvasSizeOptions) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for GridLayoutScreenCanvasSizeOptions
Auto Trait Implementations§
impl Freeze for GridLayoutScreenCanvasSizeOptions
impl RefUnwindSafe for GridLayoutScreenCanvasSizeOptions
impl Send for GridLayoutScreenCanvasSizeOptions
impl Sync for GridLayoutScreenCanvasSizeOptions
impl Unpin for GridLayoutScreenCanvasSizeOptions
impl UnwindSafe for GridLayoutScreenCanvasSizeOptions
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