nominal-api 0.1239.0

API bindings for the Nominal platform
Documentation
#[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 TimeSeriesEnumPlot {
    #[builder(custom(type = super::ColorStyle, convert = Box::new))]
    #[serde(rename = "color")]
    color: Box<super::ColorStyle>,
    #[serde(rename = "position")]
    position: super::Position,
    #[builder(custom(type = super::PersistValueOverlay, convert = Box::new))]
    #[serde(rename = "persistValueOverlays")]
    persist_value_overlays: Box<super::PersistValueOverlay>,
    #[serde(rename = "overlayScope")]
    overlay_scope: super::OverlayScope,
    #[builder(default, into)]
    #[serde(rename = "displayInline", skip_serializing_if = "Option::is_none", default)]
    display_inline: Option<bool>,
    #[builder(
        default,
        custom(
            type = impl
            Into<Option<super::EnumDisplayStyle>>,
            convert = |v|v.into().map(Box::new)
        )
    )]
    #[serde(rename = "displayStyle", skip_serializing_if = "Option::is_none", default)]
    display_style: Option<Box<super::EnumDisplayStyle>>,
}
impl TimeSeriesEnumPlot {
    /// How to color the value ranges
    #[inline]
    pub fn color(&self) -> &super::ColorStyle {
        &*self.color
    }
    /// Where to place the plot within the row
    #[inline]
    pub fn position(&self) -> &super::Position {
        &self.position
    }
    /// Render certain values' full-row/full-panel color overlays
    /// even when not interacting with the plot
    #[inline]
    pub fn persist_value_overlays(&self) -> &super::PersistValueOverlay {
        &*self.persist_value_overlays
    }
    /// How far to extend the overlay
    #[inline]
    pub fn overlay_scope(&self) -> &super::OverlayScope {
        &self.overlay_scope
    }
    #[deprecated(note = "Use displayStyle instead")]
    #[inline]
    pub fn display_inline(&self) -> Option<bool> {
        self.display_inline.as_ref().map(|o| *o)
    }
    /// How to display the enum values on the chart
    #[inline]
    pub fn display_style(&self) -> Option<&super::EnumDisplayStyle> {
        self.display_style.as_ref().map(|o| &**o)
    }
}