nominal-api 0.1239.0

API bindings for the Nominal platform
Documentation
/// A plot that performs an analysis on an multiple signals and returns
/// data mapped to the frequency domain.
#[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 FrequencyPlotMultivariate {
    #[builder(default, into)]
    #[serde(rename = "title", skip_serializing_if = "Option::is_none", default)]
    title: Option<String>,
    #[builder(
        default,
        list(
            item(type = super::super::super::channelvariables::api::ChannelVariableName)
        )
    )]
    #[serde(rename = "variableNames", skip_serializing_if = "Vec::is_empty", default)]
    variable_names: Vec<super::super::super::channelvariables::api::ChannelVariableName>,
    #[builder(default, list(item(type = super::AxisId)))]
    #[serde(rename = "axesIds", skip_serializing_if = "Vec::is_empty", default)]
    axes_ids: Vec<super::AxisId>,
    #[builder(default, into)]
    #[serde(rename = "enabled", skip_serializing_if = "Option::is_none", default)]
    enabled: Option<bool>,
    #[serde(rename = "color")]
    color: super::super::super::api::HexColor,
    #[builder(custom(type = super::LineStyle, convert = Box::new))]
    #[serde(rename = "lineStyle")]
    line_style: Box<super::LineStyle>,
}
impl FrequencyPlotMultivariate {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        color: super::super::super::api::HexColor,
        line_style: super::LineStyle,
    ) -> Self {
        Self::builder().color(color).line_style(line_style).build()
    }
    #[inline]
    pub fn title(&self) -> Option<&str> {
        self.title.as_ref().map(|o| &**o)
    }
    #[inline]
    pub fn variable_names(
        &self,
    ) -> &[super::super::super::channelvariables::api::ChannelVariableName] {
        &*self.variable_names
    }
    #[inline]
    pub fn axes_ids(&self) -> &[super::AxisId] {
        &*self.axes_ids
    }
    #[inline]
    pub fn enabled(&self) -> Option<bool> {
        self.enabled.as_ref().map(|o| *o)
    }
    #[inline]
    pub fn color(&self) -> &super::super::super::api::HexColor {
        &self.color
    }
    #[inline]
    pub fn line_style(&self) -> &super::LineStyle {
        &*self.line_style
    }
}