pub struct Builder<T>(/* private fields */);Expand description
A builder for ChartThemeContentV1
Implementations§
Source§impl Builder<TitleEnabledStage>
impl Builder<TitleEnabledStage>
Sourcepub fn title_enabled(self, title_enabled: bool) -> Builder<TitleAlignmentStage>
pub fn title_enabled(self, title_enabled: bool) -> Builder<TitleAlignmentStage>
Sets the title_enabled field.
Source§impl Builder<TitleAlignmentStage>
impl Builder<TitleAlignmentStage>
Sourcepub fn title_alignment(
self,
title_alignment: TextAlignment,
) -> Builder<TitleFontSizeStage>
pub fn title_alignment( self, title_alignment: TextAlignment, ) -> Builder<TitleFontSizeStage>
Sets the title_alignment field.
Source§impl Builder<TitleFontSizeStage>
impl Builder<TitleFontSizeStage>
Sourcepub fn title_font_size(
self,
title_font_size: i32,
) -> Builder<TitleFontColorStage>
pub fn title_font_size( self, title_font_size: i32, ) -> Builder<TitleFontColorStage>
Sets the title_font_size field.
Source§impl Builder<TitleFontColorStage>
impl Builder<TitleFontColorStage>
Sourcepub fn title_font_color(
self,
title_font_color: HexColor,
) -> Builder<CaptionEnabledStage>
pub fn title_font_color( self, title_font_color: HexColor, ) -> Builder<CaptionEnabledStage>
Sets the title_font_color field.
Source§impl Builder<CaptionEnabledStage>
impl Builder<CaptionEnabledStage>
Sourcepub fn caption_enabled(
self,
caption_enabled: bool,
) -> Builder<CaptionAlignmentStage>
pub fn caption_enabled( self, caption_enabled: bool, ) -> Builder<CaptionAlignmentStage>
Sets the caption_enabled field.
Source§impl Builder<CaptionAlignmentStage>
impl Builder<CaptionAlignmentStage>
Sourcepub fn caption_alignment(
self,
caption_alignment: TextAlignment,
) -> Builder<CaptionFontSizeStage>
pub fn caption_alignment( self, caption_alignment: TextAlignment, ) -> Builder<CaptionFontSizeStage>
Sets the caption_alignment field.
Source§impl Builder<CaptionFontSizeStage>
impl Builder<CaptionFontSizeStage>
Sourcepub fn caption_font_size(
self,
caption_font_size: i32,
) -> Builder<CaptionFontColorStage>
pub fn caption_font_size( self, caption_font_size: i32, ) -> Builder<CaptionFontColorStage>
Sets the caption_font_size field.
Source§impl Builder<CaptionFontColorStage>
impl Builder<CaptionFontColorStage>
Sourcepub fn caption_font_color(
self,
caption_font_color: HexColor,
) -> Builder<BackgroundEnabledStage>
pub fn caption_font_color( self, caption_font_color: HexColor, ) -> Builder<BackgroundEnabledStage>
Sets the caption_font_color field.
Source§impl Builder<BackgroundEnabledStage>
impl Builder<BackgroundEnabledStage>
Sourcepub fn background_enabled(
self,
background_enabled: bool,
) -> Builder<LegendEnabledStage>
pub fn background_enabled( self, background_enabled: bool, ) -> Builder<LegendEnabledStage>
Sets the background_enabled field.
Source§impl Builder<LegendEnabledStage>
impl Builder<LegendEnabledStage>
Sourcepub fn legend_enabled(
self,
legend_enabled: bool,
) -> Builder<LegendPositionStage>
pub fn legend_enabled( self, legend_enabled: bool, ) -> Builder<LegendPositionStage>
Sets the legend_enabled field.
Source§impl Builder<LegendPositionStage>
impl Builder<LegendPositionStage>
Sourcepub fn legend_position(
self,
legend_position: LegendPosition,
) -> Builder<LegendFontSizeStage>
pub fn legend_position( self, legend_position: LegendPosition, ) -> Builder<LegendFontSizeStage>
Sets the legend_position field.
Source§impl Builder<LegendFontSizeStage>
impl Builder<LegendFontSizeStage>
Sourcepub fn legend_font_size(
self,
legend_font_size: i32,
) -> Builder<LegendFontColorStage>
pub fn legend_font_size( self, legend_font_size: i32, ) -> Builder<LegendFontColorStage>
Sets the legend_font_size field.
Source§impl Builder<LegendFontColorStage>
impl Builder<LegendFontColorStage>
Sourcepub fn legend_font_color(
self,
legend_font_color: HexColor,
) -> Builder<LegendPlacementStage>
pub fn legend_font_color( self, legend_font_color: HexColor, ) -> Builder<LegendPlacementStage>
Sets the legend_font_color field.
Source§impl Builder<LegendPlacementStage>
impl Builder<LegendPlacementStage>
Sourcepub fn legend_placement(
self,
legend_placement: LegendPlacement,
) -> Builder<RowGapEnabledStage>
pub fn legend_placement( self, legend_placement: LegendPlacement, ) -> Builder<RowGapEnabledStage>
Sets the legend_placement field.
Source§impl Builder<RowGapEnabledStage>
impl Builder<RowGapEnabledStage>
Sourcepub fn row_gap_enabled(
self,
row_gap_enabled: bool,
) -> Builder<AspectRatioWidthStage>
pub fn row_gap_enabled( self, row_gap_enabled: bool, ) -> Builder<AspectRatioWidthStage>
Sets the row_gap_enabled field.
Source§impl Builder<AspectRatioWidthStage>
impl Builder<AspectRatioWidthStage>
Sourcepub fn aspect_ratio_width(
self,
aspect_ratio_width: i32,
) -> Builder<AspectRatioHeightStage>
pub fn aspect_ratio_width( self, aspect_ratio_width: i32, ) -> Builder<AspectRatioHeightStage>
Sets the aspect_ratio_width field.
Source§impl Builder<AspectRatioHeightStage>
impl Builder<AspectRatioHeightStage>
Sourcepub fn aspect_ratio_height(
self,
aspect_ratio_height: i32,
) -> Builder<ChartTypeThemesStage>
pub fn aspect_ratio_height( self, aspect_ratio_height: i32, ) -> Builder<ChartTypeThemesStage>
Sets the aspect_ratio_height field.
Source§impl Builder<ChartTypeThemesStage>
impl Builder<ChartTypeThemesStage>
Sourcepub fn chart_type_themes(
self,
chart_type_themes: ChartTypeThemes,
) -> Builder<Complete>
pub fn chart_type_themes( self, chart_type_themes: ChartTypeThemes, ) -> Builder<Complete>
Sets the chart_type_themes field.
Source§impl Builder<Complete>
impl Builder<Complete>
Sourcepub fn title_enabled(self, title_enabled: bool) -> Self
pub fn title_enabled(self, title_enabled: bool) -> Self
Sets the title_enabled field.
Sourcepub fn title_alignment(self, title_alignment: TextAlignment) -> Self
pub fn title_alignment(self, title_alignment: TextAlignment) -> Self
Sets the title_alignment field.
Sourcepub fn title_font_size(self, title_font_size: i32) -> Self
pub fn title_font_size(self, title_font_size: i32) -> Self
Sets the title_font_size field.
Sourcepub fn title_font_color(self, title_font_color: HexColor) -> Self
pub fn title_font_color(self, title_font_color: HexColor) -> Self
Sets the title_font_color field.
Sourcepub fn caption_enabled(self, caption_enabled: bool) -> Self
pub fn caption_enabled(self, caption_enabled: bool) -> Self
Sets the caption_enabled field.
Sourcepub fn caption_alignment(self, caption_alignment: TextAlignment) -> Self
pub fn caption_alignment(self, caption_alignment: TextAlignment) -> Self
Sets the caption_alignment field.
Sourcepub fn caption_font_size(self, caption_font_size: i32) -> Self
pub fn caption_font_size(self, caption_font_size: i32) -> Self
Sets the caption_font_size field.
Sourcepub fn caption_font_color(self, caption_font_color: HexColor) -> Self
pub fn caption_font_color(self, caption_font_color: HexColor) -> Self
Sets the caption_font_color field.
Sourcepub fn background_enabled(self, background_enabled: bool) -> Self
pub fn background_enabled(self, background_enabled: bool) -> Self
Sets the background_enabled field.
Sourcepub fn legend_enabled(self, legend_enabled: bool) -> Self
pub fn legend_enabled(self, legend_enabled: bool) -> Self
Sets the legend_enabled field.
Sourcepub fn legend_position(self, legend_position: LegendPosition) -> Self
pub fn legend_position(self, legend_position: LegendPosition) -> Self
Sets the legend_position field.
Sourcepub fn legend_font_size(self, legend_font_size: i32) -> Self
pub fn legend_font_size(self, legend_font_size: i32) -> Self
Sets the legend_font_size field.
Sourcepub fn legend_font_color(self, legend_font_color: HexColor) -> Self
pub fn legend_font_color(self, legend_font_color: HexColor) -> Self
Sets the legend_font_color field.
Sourcepub fn legend_placement(self, legend_placement: LegendPlacement) -> Self
pub fn legend_placement(self, legend_placement: LegendPlacement) -> Self
Sets the legend_placement field.
Sourcepub fn row_gap_enabled(self, row_gap_enabled: bool) -> Self
pub fn row_gap_enabled(self, row_gap_enabled: bool) -> Self
Sets the row_gap_enabled field.
Sourcepub fn row_gap_size(self, row_gap_size: impl Into<Option<i32>>) -> Self
pub fn row_gap_size(self, row_gap_size: impl Into<Option<i32>>) -> Self
Sets the row_gap_size field.
Sourcepub fn aspect_ratio_width(self, aspect_ratio_width: i32) -> Self
pub fn aspect_ratio_width(self, aspect_ratio_width: i32) -> Self
Sets the aspect_ratio_width field.
Sourcepub fn aspect_ratio_height(self, aspect_ratio_height: i32) -> Self
pub fn aspect_ratio_height(self, aspect_ratio_height: i32) -> Self
Sets the aspect_ratio_height field.
Sourcepub fn chart_type_themes(self, chart_type_themes: ChartTypeThemes) -> Self
pub fn chart_type_themes(self, chart_type_themes: ChartTypeThemes) -> Self
Sets the chart_type_themes field.
Sourcepub fn build(self) -> ChartThemeContentV1
pub fn build(self) -> ChartThemeContentV1
Consumes the builder, returning a ChartThemeContentV1.
Trait Implementations§
Source§impl Default for Builder<TitleEnabledStage>
impl Default for Builder<TitleEnabledStage>
Source§impl From<ChartThemeContentV1> for Builder<Complete>
impl From<ChartThemeContentV1> for Builder<Complete>
Source§fn from(v: ChartThemeContentV1) -> Self
fn from(v: ChartThemeContentV1) -> Self
Auto Trait Implementations§
impl<T> Freeze for Builder<T>where
T: Freeze,
impl<T> RefUnwindSafe for Builder<T>where
T: RefUnwindSafe,
impl<T> Send for Builder<T>where
T: Send,
impl<T> Sync for Builder<T>where
T: Sync,
impl<T> Unpin for Builder<T>where
T: Unpin,
impl<T> UnwindSafe for Builder<T>where
T: UnwindSafe,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request