#[non_exhaustive]pub struct RadarChartConfigurationBuilder { /* private fields */ }Expand description
A builder for RadarChartConfiguration.
Implementations§
source§impl RadarChartConfigurationBuilder
impl RadarChartConfigurationBuilder
sourcepub fn field_wells(self, input: RadarChartFieldWells) -> Self
pub fn field_wells(self, input: RadarChartFieldWells) -> Self
The field well configuration of a RadarChartVisual.
sourcepub fn set_field_wells(self, input: Option<RadarChartFieldWells>) -> Self
pub fn set_field_wells(self, input: Option<RadarChartFieldWells>) -> Self
The field well configuration of a RadarChartVisual.
sourcepub fn get_field_wells(&self) -> &Option<RadarChartFieldWells>
pub fn get_field_wells(&self) -> &Option<RadarChartFieldWells>
The field well configuration of a RadarChartVisual.
sourcepub fn sort_configuration(self, input: RadarChartSortConfiguration) -> Self
pub fn sort_configuration(self, input: RadarChartSortConfiguration) -> Self
The sort configuration of a RadarChartVisual.
sourcepub fn set_sort_configuration(
self,
input: Option<RadarChartSortConfiguration>,
) -> Self
pub fn set_sort_configuration( self, input: Option<RadarChartSortConfiguration>, ) -> Self
The sort configuration of a RadarChartVisual.
sourcepub fn get_sort_configuration(&self) -> &Option<RadarChartSortConfiguration>
pub fn get_sort_configuration(&self) -> &Option<RadarChartSortConfiguration>
The sort configuration of a RadarChartVisual.
sourcepub fn shape(self, input: RadarChartShape) -> Self
pub fn shape(self, input: RadarChartShape) -> Self
The shape of the radar chart.
sourcepub fn set_shape(self, input: Option<RadarChartShape>) -> Self
pub fn set_shape(self, input: Option<RadarChartShape>) -> Self
The shape of the radar chart.
sourcepub fn get_shape(&self) -> &Option<RadarChartShape>
pub fn get_shape(&self) -> &Option<RadarChartShape>
The shape of the radar chart.
sourcepub fn base_series_settings(self, input: RadarChartSeriesSettings) -> Self
pub fn base_series_settings(self, input: RadarChartSeriesSettings) -> Self
The base sreies settings of a radar chart.
sourcepub fn set_base_series_settings(
self,
input: Option<RadarChartSeriesSettings>,
) -> Self
pub fn set_base_series_settings( self, input: Option<RadarChartSeriesSettings>, ) -> Self
The base sreies settings of a radar chart.
sourcepub fn get_base_series_settings(&self) -> &Option<RadarChartSeriesSettings>
pub fn get_base_series_settings(&self) -> &Option<RadarChartSeriesSettings>
The base sreies settings of a radar chart.
sourcepub fn start_angle(self, input: f64) -> Self
pub fn start_angle(self, input: f64) -> Self
The start angle of a radar chart's axis.
sourcepub fn set_start_angle(self, input: Option<f64>) -> Self
pub fn set_start_angle(self, input: Option<f64>) -> Self
The start angle of a radar chart's axis.
sourcepub fn get_start_angle(&self) -> &Option<f64>
pub fn get_start_angle(&self) -> &Option<f64>
The start angle of a radar chart's axis.
sourcepub fn visual_palette(self, input: VisualPalette) -> Self
pub fn visual_palette(self, input: VisualPalette) -> Self
The palette (chart color) display setup of the visual.
sourcepub fn set_visual_palette(self, input: Option<VisualPalette>) -> Self
pub fn set_visual_palette(self, input: Option<VisualPalette>) -> Self
The palette (chart color) display setup of the visual.
sourcepub fn get_visual_palette(&self) -> &Option<VisualPalette>
pub fn get_visual_palette(&self) -> &Option<VisualPalette>
The palette (chart color) display setup of the visual.
sourcepub fn alternate_band_colors_visibility(self, input: Visibility) -> Self
pub fn alternate_band_colors_visibility(self, input: Visibility) -> Self
Determines the visibility of the colors of alternatign bands in a radar chart.
sourcepub fn set_alternate_band_colors_visibility(
self,
input: Option<Visibility>,
) -> Self
pub fn set_alternate_band_colors_visibility( self, input: Option<Visibility>, ) -> Self
Determines the visibility of the colors of alternatign bands in a radar chart.
sourcepub fn get_alternate_band_colors_visibility(&self) -> &Option<Visibility>
pub fn get_alternate_band_colors_visibility(&self) -> &Option<Visibility>
Determines the visibility of the colors of alternatign bands in a radar chart.
sourcepub fn alternate_band_even_color(self, input: impl Into<String>) -> Self
pub fn alternate_band_even_color(self, input: impl Into<String>) -> Self
The color of the even-numbered alternate bands of a radar chart.
sourcepub fn set_alternate_band_even_color(self, input: Option<String>) -> Self
pub fn set_alternate_band_even_color(self, input: Option<String>) -> Self
The color of the even-numbered alternate bands of a radar chart.
sourcepub fn get_alternate_band_even_color(&self) -> &Option<String>
pub fn get_alternate_band_even_color(&self) -> &Option<String>
The color of the even-numbered alternate bands of a radar chart.
sourcepub fn alternate_band_odd_color(self, input: impl Into<String>) -> Self
pub fn alternate_band_odd_color(self, input: impl Into<String>) -> Self
The color of the odd-numbered alternate bands of a radar chart.
sourcepub fn set_alternate_band_odd_color(self, input: Option<String>) -> Self
pub fn set_alternate_band_odd_color(self, input: Option<String>) -> Self
The color of the odd-numbered alternate bands of a radar chart.
sourcepub fn get_alternate_band_odd_color(&self) -> &Option<String>
pub fn get_alternate_band_odd_color(&self) -> &Option<String>
The color of the odd-numbered alternate bands of a radar chart.
sourcepub fn category_axis(self, input: AxisDisplayOptions) -> Self
pub fn category_axis(self, input: AxisDisplayOptions) -> Self
The category axis of a radar chart.
sourcepub fn set_category_axis(self, input: Option<AxisDisplayOptions>) -> Self
pub fn set_category_axis(self, input: Option<AxisDisplayOptions>) -> Self
The category axis of a radar chart.
sourcepub fn get_category_axis(&self) -> &Option<AxisDisplayOptions>
pub fn get_category_axis(&self) -> &Option<AxisDisplayOptions>
The category axis of a radar chart.
sourcepub fn category_label_options(self, input: ChartAxisLabelOptions) -> Self
pub fn category_label_options(self, input: ChartAxisLabelOptions) -> Self
The category label options of a radar chart.
sourcepub fn set_category_label_options(
self,
input: Option<ChartAxisLabelOptions>,
) -> Self
pub fn set_category_label_options( self, input: Option<ChartAxisLabelOptions>, ) -> Self
The category label options of a radar chart.
sourcepub fn get_category_label_options(&self) -> &Option<ChartAxisLabelOptions>
pub fn get_category_label_options(&self) -> &Option<ChartAxisLabelOptions>
The category label options of a radar chart.
sourcepub fn color_axis(self, input: AxisDisplayOptions) -> Self
pub fn color_axis(self, input: AxisDisplayOptions) -> Self
The color axis of a radar chart.
sourcepub fn set_color_axis(self, input: Option<AxisDisplayOptions>) -> Self
pub fn set_color_axis(self, input: Option<AxisDisplayOptions>) -> Self
The color axis of a radar chart.
sourcepub fn get_color_axis(&self) -> &Option<AxisDisplayOptions>
pub fn get_color_axis(&self) -> &Option<AxisDisplayOptions>
The color axis of a radar chart.
sourcepub fn color_label_options(self, input: ChartAxisLabelOptions) -> Self
pub fn color_label_options(self, input: ChartAxisLabelOptions) -> Self
The color label options of a radar chart.
sourcepub fn set_color_label_options(
self,
input: Option<ChartAxisLabelOptions>,
) -> Self
pub fn set_color_label_options( self, input: Option<ChartAxisLabelOptions>, ) -> Self
The color label options of a radar chart.
sourcepub fn get_color_label_options(&self) -> &Option<ChartAxisLabelOptions>
pub fn get_color_label_options(&self) -> &Option<ChartAxisLabelOptions>
The color label options of a radar chart.
sourcepub fn legend(self, input: LegendOptions) -> Self
pub fn legend(self, input: LegendOptions) -> Self
The legend display setup of the visual.
sourcepub fn set_legend(self, input: Option<LegendOptions>) -> Self
pub fn set_legend(self, input: Option<LegendOptions>) -> Self
The legend display setup of the visual.
sourcepub fn get_legend(&self) -> &Option<LegendOptions>
pub fn get_legend(&self) -> &Option<LegendOptions>
The legend display setup of the visual.
sourcepub fn axes_range_scale(self, input: RadarChartAxesRangeScale) -> Self
pub fn axes_range_scale(self, input: RadarChartAxesRangeScale) -> Self
The axis behavior options of a radar chart.
sourcepub fn set_axes_range_scale(
self,
input: Option<RadarChartAxesRangeScale>,
) -> Self
pub fn set_axes_range_scale( self, input: Option<RadarChartAxesRangeScale>, ) -> Self
The axis behavior options of a radar chart.
sourcepub fn get_axes_range_scale(&self) -> &Option<RadarChartAxesRangeScale>
pub fn get_axes_range_scale(&self) -> &Option<RadarChartAxesRangeScale>
The axis behavior options of a radar chart.
sourcepub fn interactions(self, input: VisualInteractionOptions) -> Self
pub fn interactions(self, input: VisualInteractionOptions) -> Self
The general visual interactions setup for a visual.
sourcepub fn set_interactions(self, input: Option<VisualInteractionOptions>) -> Self
pub fn set_interactions(self, input: Option<VisualInteractionOptions>) -> Self
The general visual interactions setup for a visual.
sourcepub fn get_interactions(&self) -> &Option<VisualInteractionOptions>
pub fn get_interactions(&self) -> &Option<VisualInteractionOptions>
The general visual interactions setup for a visual.
sourcepub fn build(self) -> RadarChartConfiguration
pub fn build(self) -> RadarChartConfiguration
Consumes the builder and constructs a RadarChartConfiguration.
Trait Implementations§
source§impl Clone for RadarChartConfigurationBuilder
impl Clone for RadarChartConfigurationBuilder
source§fn clone(&self) -> RadarChartConfigurationBuilder
fn clone(&self) -> RadarChartConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for RadarChartConfigurationBuilder
impl Default for RadarChartConfigurationBuilder
source§fn default() -> RadarChartConfigurationBuilder
fn default() -> RadarChartConfigurationBuilder
source§impl PartialEq for RadarChartConfigurationBuilder
impl PartialEq for RadarChartConfigurationBuilder
source§fn eq(&self, other: &RadarChartConfigurationBuilder) -> bool
fn eq(&self, other: &RadarChartConfigurationBuilder) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RadarChartConfigurationBuilder
Auto Trait Implementations§
impl Freeze for RadarChartConfigurationBuilder
impl RefUnwindSafe for RadarChartConfigurationBuilder
impl Send for RadarChartConfigurationBuilder
impl Sync for RadarChartConfigurationBuilder
impl Unpin for RadarChartConfigurationBuilder
impl UnwindSafe for RadarChartConfigurationBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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 moresource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the foreground set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red() and
green(), which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg():
use yansi::{Paint, Color};
painted.fg(Color::White);Set foreground color to white using white().
use yansi::Paint;
painted.white();source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Returns self with the
fg()
set to
Color::BrightBlack.
§Example
println!("{}", value.bright_black());source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Returns self with the
fg()
set to
Color::BrightGreen.
§Example
println!("{}", value.bright_green());source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Returns self with the
fg()
set to
Color::BrightYellow.
§Example
println!("{}", value.bright_yellow());source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Returns self with the
fg()
set to
Color::BrightMagenta.
§Example
println!("{}", value.bright_magenta());source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Returns self with the
fg()
set to
Color::BrightWhite.
§Example
println!("{}", value.bright_white());source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the background set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red() and
on_green(), which have the same functionality but
are pithier.
§Example
Set background color to red using fg():
use yansi::{Paint, Color};
painted.bg(Color::Red);Set background color to red using on_red().
use yansi::Paint;
painted.on_red();source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Returns self with the
bg()
set to
Color::BrightBlack.
§Example
println!("{}", value.on_bright_black());source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Returns self with the
bg()
set to
Color::BrightGreen.
§Example
println!("{}", value.on_bright_green());source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Returns self with the
bg()
set to
Color::BrightYellow.
§Example
println!("{}", value.on_bright_yellow());source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Returns self with the
bg()
set to
Color::BrightBlue.
§Example
println!("{}", value.on_bright_blue());source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Returns self with the
bg()
set to
Color::BrightMagenta.
§Example
println!("{}", value.on_bright_magenta());source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Returns self with the
bg()
set to
Color::BrightCyan.
§Example
println!("{}", value.on_bright_cyan());source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Returns self with the
bg()
set to
Color::BrightWhite.
§Example
println!("{}", value.on_bright_white());source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute value.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold() and
underline(), which have the same functionality
but are pithier.
§Example
Make text bold using attr():
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);Make text bold using using bold().
use yansi::Paint;
painted.bold();source§fn underline(&self) -> Painted<&T>
fn underline(&self) -> Painted<&T>
Returns self with the
attr()
set to
Attribute::Underline.
§Example
println!("{}", value.underline());source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Returns self with the
attr()
set to
Attribute::RapidBlink.
§Example
println!("{}", value.rapid_blink());source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi Quirk value.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask() and
wrap(), which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk():
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);Enable wrapping using wrap().
use yansi::Paint;
painted.wrap();source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted only when both stdout and stderr are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);