#[derive(
Debug,
Clone,
conjure_object::serde::Serialize,
conjure_object::serde::Deserialize,
PartialEq,
Eq,
PartialOrd,
Ord,
Hash
)]
#[serde(crate = "conjure_object::serde")]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct ChartThemeContentV1 {
#[serde(rename = "titleEnabled")]
title_enabled: bool,
#[serde(rename = "titleAlignment")]
title_alignment: super::TextAlignment,
#[serde(rename = "titleFontSize")]
title_font_size: i32,
#[serde(rename = "titleFontColor")]
title_font_color: super::HexColor,
#[serde(rename = "captionEnabled")]
caption_enabled: bool,
#[serde(rename = "captionAlignment")]
caption_alignment: super::TextAlignment,
#[serde(rename = "captionFontSize")]
caption_font_size: i32,
#[serde(rename = "captionFontColor")]
caption_font_color: super::HexColor,
#[serde(rename = "backgroundEnabled")]
background_enabled: bool,
#[serde(rename = "legendEnabled")]
legend_enabled: bool,
#[serde(rename = "legendPosition")]
legend_position: super::LegendPosition,
#[serde(rename = "legendFontSize")]
legend_font_size: i32,
#[serde(rename = "legendFontColor")]
legend_font_color: super::HexColor,
#[serde(rename = "legendPlacement")]
legend_placement: super::LegendPlacement,
#[serde(rename = "rowGapEnabled")]
row_gap_enabled: bool,
#[builder(default, into)]
#[serde(rename = "rowGapSize", skip_serializing_if = "Option::is_none", default)]
row_gap_size: Option<i32>,
#[serde(rename = "aspectRatioWidth")]
aspect_ratio_width: i32,
#[serde(rename = "aspectRatioHeight")]
aspect_ratio_height: i32,
#[builder(custom(type = super::ChartTypeThemes, convert = Box::new))]
#[serde(rename = "chartTypeThemes")]
chart_type_themes: Box<super::ChartTypeThemes>,
}
impl ChartThemeContentV1 {
#[inline]
pub fn title_enabled(&self) -> bool {
self.title_enabled
}
#[inline]
pub fn title_alignment(&self) -> &super::TextAlignment {
&self.title_alignment
}
#[inline]
pub fn title_font_size(&self) -> i32 {
self.title_font_size
}
#[inline]
pub fn title_font_color(&self) -> &super::HexColor {
&self.title_font_color
}
#[inline]
pub fn caption_enabled(&self) -> bool {
self.caption_enabled
}
#[inline]
pub fn caption_alignment(&self) -> &super::TextAlignment {
&self.caption_alignment
}
#[inline]
pub fn caption_font_size(&self) -> i32 {
self.caption_font_size
}
#[inline]
pub fn caption_font_color(&self) -> &super::HexColor {
&self.caption_font_color
}
#[inline]
pub fn background_enabled(&self) -> bool {
self.background_enabled
}
#[inline]
pub fn legend_enabled(&self) -> bool {
self.legend_enabled
}
#[inline]
pub fn legend_position(&self) -> &super::LegendPosition {
&self.legend_position
}
#[inline]
pub fn legend_font_size(&self) -> i32 {
self.legend_font_size
}
#[inline]
pub fn legend_font_color(&self) -> &super::HexColor {
&self.legend_font_color
}
#[inline]
pub fn legend_placement(&self) -> &super::LegendPlacement {
&self.legend_placement
}
#[inline]
pub fn row_gap_enabled(&self) -> bool {
self.row_gap_enabled
}
#[inline]
pub fn row_gap_size(&self) -> Option<i32> {
self.row_gap_size.as_ref().map(|o| *o)
}
#[inline]
pub fn aspect_ratio_width(&self) -> i32 {
self.aspect_ratio_width
}
#[inline]
pub fn aspect_ratio_height(&self) -> i32 {
self.aspect_ratio_height
}
#[inline]
pub fn chart_type_themes(&self) -> &super::ChartTypeThemes {
&*self.chart_type_themes
}
}