#[non_exhaustive]pub struct CustomContentVisualBuilder { /* private fields */ }
Expand description
A builder for CustomContentVisual
.
Implementations§
source§impl CustomContentVisualBuilder
impl CustomContentVisualBuilder
sourcepub fn visual_id(self, input: impl Into<String>) -> Self
pub fn visual_id(self, input: impl Into<String>) -> Self
The unique identifier of a visual. This identifier must be unique within the context of a dashboard, template, or analysis. Two dashboards, analyses, or templates can have visuals with the same identifiers.
This field is required.sourcepub fn set_visual_id(self, input: Option<String>) -> Self
pub fn set_visual_id(self, input: Option<String>) -> Self
The unique identifier of a visual. This identifier must be unique within the context of a dashboard, template, or analysis. Two dashboards, analyses, or templates can have visuals with the same identifiers.
sourcepub fn get_visual_id(&self) -> &Option<String>
pub fn get_visual_id(&self) -> &Option<String>
The unique identifier of a visual. This identifier must be unique within the context of a dashboard, template, or analysis. Two dashboards, analyses, or templates can have visuals with the same identifiers.
sourcepub fn title(self, input: VisualTitleLabelOptions) -> Self
pub fn title(self, input: VisualTitleLabelOptions) -> Self
The title that is displayed on the visual.
sourcepub fn set_title(self, input: Option<VisualTitleLabelOptions>) -> Self
pub fn set_title(self, input: Option<VisualTitleLabelOptions>) -> Self
The title that is displayed on the visual.
sourcepub fn get_title(&self) -> &Option<VisualTitleLabelOptions>
pub fn get_title(&self) -> &Option<VisualTitleLabelOptions>
The title that is displayed on the visual.
sourcepub fn subtitle(self, input: VisualSubtitleLabelOptions) -> Self
pub fn subtitle(self, input: VisualSubtitleLabelOptions) -> Self
The subtitle that is displayed on the visual.
sourcepub fn set_subtitle(self, input: Option<VisualSubtitleLabelOptions>) -> Self
pub fn set_subtitle(self, input: Option<VisualSubtitleLabelOptions>) -> Self
The subtitle that is displayed on the visual.
sourcepub fn get_subtitle(&self) -> &Option<VisualSubtitleLabelOptions>
pub fn get_subtitle(&self) -> &Option<VisualSubtitleLabelOptions>
The subtitle that is displayed on the visual.
sourcepub fn chart_configuration(self, input: CustomContentConfiguration) -> Self
pub fn chart_configuration(self, input: CustomContentConfiguration) -> Self
The configuration of a CustomContentVisual
.
sourcepub fn set_chart_configuration(
self,
input: Option<CustomContentConfiguration>
) -> Self
pub fn set_chart_configuration( self, input: Option<CustomContentConfiguration> ) -> Self
The configuration of a CustomContentVisual
.
sourcepub fn get_chart_configuration(&self) -> &Option<CustomContentConfiguration>
pub fn get_chart_configuration(&self) -> &Option<CustomContentConfiguration>
The configuration of a CustomContentVisual
.
sourcepub fn actions(self, input: VisualCustomAction) -> Self
pub fn actions(self, input: VisualCustomAction) -> Self
Appends an item to actions
.
To override the contents of this collection use set_actions
.
The list of custom actions that are configured for a visual.
sourcepub fn set_actions(self, input: Option<Vec<VisualCustomAction>>) -> Self
pub fn set_actions(self, input: Option<Vec<VisualCustomAction>>) -> Self
The list of custom actions that are configured for a visual.
sourcepub fn get_actions(&self) -> &Option<Vec<VisualCustomAction>>
pub fn get_actions(&self) -> &Option<Vec<VisualCustomAction>>
The list of custom actions that are configured for a visual.
sourcepub fn data_set_identifier(self, input: impl Into<String>) -> Self
pub fn data_set_identifier(self, input: impl Into<String>) -> Self
The dataset that is used to create the custom content visual. You can't create a visual without a dataset.
This field is required.sourcepub fn set_data_set_identifier(self, input: Option<String>) -> Self
pub fn set_data_set_identifier(self, input: Option<String>) -> Self
The dataset that is used to create the custom content visual. You can't create a visual without a dataset.
sourcepub fn get_data_set_identifier(&self) -> &Option<String>
pub fn get_data_set_identifier(&self) -> &Option<String>
The dataset that is used to create the custom content visual. You can't create a visual without a dataset.
sourcepub fn build(self) -> Result<CustomContentVisual, BuildError>
pub fn build(self) -> Result<CustomContentVisual, BuildError>
Consumes the builder and constructs a CustomContentVisual
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for CustomContentVisualBuilder
impl Clone for CustomContentVisualBuilder
source§fn clone(&self) -> CustomContentVisualBuilder
fn clone(&self) -> CustomContentVisualBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CustomContentVisualBuilder
impl Debug for CustomContentVisualBuilder
source§impl Default for CustomContentVisualBuilder
impl Default for CustomContentVisualBuilder
source§fn default() -> CustomContentVisualBuilder
fn default() -> CustomContentVisualBuilder
source§impl PartialEq for CustomContentVisualBuilder
impl PartialEq for CustomContentVisualBuilder
source§fn eq(&self, other: &CustomContentVisualBuilder) -> bool
fn eq(&self, other: &CustomContentVisualBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.