nominal-api 0.1239.0

API bindings for the Nominal platform
Documentation
/// Theme parameters specific to the time series chart.
#[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 TimeSeriesChartThemeV1 {
    #[serde(rename = "xAxisTickFontSize")]
    x_axis_tick_font_size: i32,
    #[serde(rename = "xAxisTickFontColor")]
    x_axis_tick_font_color: super::HexColor,
    #[serde(rename = "yAxisTitleFontSize")]
    y_axis_title_font_size: i32,
    #[serde(rename = "yAxisTickFontSize")]
    y_axis_tick_font_size: i32,
    #[builder(default, into)]
    #[serde(
        rename = "thresholdLineWidth",
        skip_serializing_if = "Option::is_none",
        default
    )]
    threshold_line_width: Option<i32>,
}
impl TimeSeriesChartThemeV1 {
    /// The font size of the x-axis ticks.
    #[inline]
    pub fn x_axis_tick_font_size(&self) -> i32 {
        self.x_axis_tick_font_size
    }
    /// The font color of the x-axis ticks.
    #[inline]
    pub fn x_axis_tick_font_color(&self) -> &super::HexColor {
        &self.x_axis_tick_font_color
    }
    /// The font size of the y-axis labels.
    #[inline]
    pub fn y_axis_title_font_size(&self) -> i32 {
        self.y_axis_title_font_size
    }
    /// The font size of the y-axis ticks.
    #[inline]
    pub fn y_axis_tick_font_size(&self) -> i32 {
        self.y_axis_tick_font_size
    }
    /// The line thickness in px of the threshold line.
    #[inline]
    pub fn threshold_line_width(&self) -> Option<i32> {
        self.threshold_line_width.as_ref().map(|o| *o)
    }
}