Struct aws_sdk_quicksight::types::LegendOptions
source · #[non_exhaustive]pub struct LegendOptions {
pub visibility: Option<Visibility>,
pub title: Option<LabelOptions>,
pub position: Option<LegendPosition>,
pub width: Option<String>,
pub height: Option<String>,
}
Expand description
The options for the legend setup of a visual.
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.visibility: Option<Visibility>
Determines whether or not the legend is visible.
title: Option<LabelOptions>
The custom title for the legend.
position: Option<LegendPosition>
The positions for the legend. Choose one of the following options:
-
AUTO
-
RIGHT
-
BOTTOM
-
LEFT
width: Option<String>
The width of the legend. If this value is omitted, a default width is used when rendering.
height: Option<String>
The height of the legend. If this value is omitted, a default height is used when rendering.
Implementations§
source§impl LegendOptions
impl LegendOptions
sourcepub fn visibility(&self) -> Option<&Visibility>
pub fn visibility(&self) -> Option<&Visibility>
Determines whether or not the legend is visible.
sourcepub fn title(&self) -> Option<&LabelOptions>
pub fn title(&self) -> Option<&LabelOptions>
The custom title for the legend.
sourcepub fn position(&self) -> Option<&LegendPosition>
pub fn position(&self) -> Option<&LegendPosition>
The positions for the legend. Choose one of the following options:
-
AUTO
-
RIGHT
-
BOTTOM
-
LEFT
source§impl LegendOptions
impl LegendOptions
sourcepub fn builder() -> LegendOptionsBuilder
pub fn builder() -> LegendOptionsBuilder
Creates a new builder-style object to manufacture LegendOptions
.
Trait Implementations§
source§impl Clone for LegendOptions
impl Clone for LegendOptions
source§fn clone(&self) -> LegendOptions
fn clone(&self) -> LegendOptions
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 Debug for LegendOptions
impl Debug for LegendOptions
source§impl PartialEq for LegendOptions
impl PartialEq for LegendOptions
source§fn eq(&self, other: &LegendOptions) -> bool
fn eq(&self, other: &LegendOptions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LegendOptions
Auto Trait Implementations§
impl RefUnwindSafe for LegendOptions
impl Send for LegendOptions
impl Sync for LegendOptions
impl Unpin for LegendOptions
impl UnwindSafe for LegendOptions
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> 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>
Creates a shared type from an unshared type.