Builder

Struct Builder 

Source
pub struct Builder<T>(/* private fields */);
Expand description

A builder for ChartThemeContentV1

Implementations§

Source§

impl Builder<TitleEnabledStage>

Source

pub fn title_enabled(self, title_enabled: bool) -> Builder<TitleAlignmentStage>

Sets the title_enabled field.

Source§

impl Builder<TitleAlignmentStage>

Source

pub fn title_alignment( self, title_alignment: TextAlignment, ) -> Builder<TitleFontSizeStage>

Sets the title_alignment field.

Source§

impl Builder<TitleFontSizeStage>

Source

pub fn title_font_size( self, title_font_size: i32, ) -> Builder<TitleFontColorStage>

Sets the title_font_size field.

Source§

impl Builder<TitleFontColorStage>

Source

pub fn title_font_color( self, title_font_color: HexColor, ) -> Builder<CaptionEnabledStage>

Sets the title_font_color field.

Source§

impl Builder<CaptionEnabledStage>

Source

pub fn caption_enabled( self, caption_enabled: bool, ) -> Builder<CaptionAlignmentStage>

Sets the caption_enabled field.

Source§

impl Builder<CaptionAlignmentStage>

Source

pub fn caption_alignment( self, caption_alignment: TextAlignment, ) -> Builder<CaptionFontSizeStage>

Sets the caption_alignment field.

Source§

impl Builder<CaptionFontSizeStage>

Source

pub fn caption_font_size( self, caption_font_size: i32, ) -> Builder<CaptionFontColorStage>

Sets the caption_font_size field.

Source§

impl Builder<CaptionFontColorStage>

Source

pub fn caption_font_color( self, caption_font_color: HexColor, ) -> Builder<BackgroundEnabledStage>

Sets the caption_font_color field.

Source§

impl Builder<BackgroundEnabledStage>

Source

pub fn background_enabled( self, background_enabled: bool, ) -> Builder<LegendEnabledStage>

Sets the background_enabled field.

Source§

impl Builder<LegendEnabledStage>

Source

pub fn legend_enabled( self, legend_enabled: bool, ) -> Builder<LegendPositionStage>

Sets the legend_enabled field.

Source§

impl Builder<LegendPositionStage>

Source

pub fn legend_position( self, legend_position: LegendPosition, ) -> Builder<LegendFontSizeStage>

Sets the legend_position field.

Source§

impl Builder<LegendFontSizeStage>

Source

pub fn legend_font_size( self, legend_font_size: i32, ) -> Builder<LegendFontColorStage>

Sets the legend_font_size field.

Source§

impl Builder<LegendFontColorStage>

Source

pub fn legend_font_color( self, legend_font_color: HexColor, ) -> Builder<LegendPlacementStage>

Sets the legend_font_color field.

Source§

impl Builder<LegendPlacementStage>

Source

pub fn legend_placement( self, legend_placement: LegendPlacement, ) -> Builder<RowGapEnabledStage>

Sets the legend_placement field.

Source§

impl Builder<RowGapEnabledStage>

Source

pub fn row_gap_enabled( self, row_gap_enabled: bool, ) -> Builder<AspectRatioWidthStage>

Sets the row_gap_enabled field.

Source§

impl Builder<AspectRatioWidthStage>

Source

pub fn aspect_ratio_width( self, aspect_ratio_width: i32, ) -> Builder<AspectRatioHeightStage>

Sets the aspect_ratio_width field.

Source§

impl Builder<AspectRatioHeightStage>

Source

pub fn aspect_ratio_height( self, aspect_ratio_height: i32, ) -> Builder<ChartTypeThemesStage>

Sets the aspect_ratio_height field.

Source§

impl Builder<ChartTypeThemesStage>

Source

pub fn chart_type_themes( self, chart_type_themes: ChartTypeThemes, ) -> Builder<Complete>

Sets the chart_type_themes field.

Source§

impl Builder<Complete>

Source

pub fn title_enabled(self, title_enabled: bool) -> Self

Sets the title_enabled field.

Source

pub fn title_alignment(self, title_alignment: TextAlignment) -> Self

Sets the title_alignment field.

Source

pub fn title_font_size(self, title_font_size: i32) -> Self

Sets the title_font_size field.

Source

pub fn title_font_color(self, title_font_color: HexColor) -> Self

Sets the title_font_color field.

Source

pub fn caption_enabled(self, caption_enabled: bool) -> Self

Sets the caption_enabled field.

Source

pub fn caption_alignment(self, caption_alignment: TextAlignment) -> Self

Sets the caption_alignment field.

Source

pub fn caption_font_size(self, caption_font_size: i32) -> Self

Sets the caption_font_size field.

Source

pub fn caption_font_color(self, caption_font_color: HexColor) -> Self

Sets the caption_font_color field.

Source

pub fn background_enabled(self, background_enabled: bool) -> Self

Sets the background_enabled field.

Source

pub fn legend_enabled(self, legend_enabled: bool) -> Self

Sets the legend_enabled field.

Source

pub fn legend_position(self, legend_position: LegendPosition) -> Self

Sets the legend_position field.

Source

pub fn legend_font_size(self, legend_font_size: i32) -> Self

Sets the legend_font_size field.

Source

pub fn legend_font_color(self, legend_font_color: HexColor) -> Self

Sets the legend_font_color field.

Source

pub fn legend_placement(self, legend_placement: LegendPlacement) -> Self

Sets the legend_placement field.

Source

pub fn row_gap_enabled(self, row_gap_enabled: bool) -> Self

Sets the row_gap_enabled field.

Source

pub fn row_gap_size(self, row_gap_size: impl Into<Option<i32>>) -> Self

Sets the row_gap_size field.

Source

pub fn aspect_ratio_width(self, aspect_ratio_width: i32) -> Self

Sets the aspect_ratio_width field.

Source

pub fn aspect_ratio_height(self, aspect_ratio_height: i32) -> Self

Sets the aspect_ratio_height field.

Source

pub fn chart_type_themes(self, chart_type_themes: ChartTypeThemes) -> Self

Sets the chart_type_themes field.

Source

pub fn build(self) -> ChartThemeContentV1

Consumes the builder, returning a ChartThemeContentV1.

Trait Implementations§

Source§

impl Default for Builder<TitleEnabledStage>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl From<ChartThemeContentV1> for Builder<Complete>

Source§

fn from(v: ChartThemeContentV1) -> Self

Converts to this type from the input type.

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoRequest<T> for T

Source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
Source§

impl<L> LayerExt<L> for L

Source§

fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>
where L: Layer<S>,

Applies the layer to a service and wraps it in Layered.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more