#[derive(
    Debug,
    Clone,
    conjure_object::serde::Serialize,
    conjure_object::serde::Deserialize,
    conjure_object::private::DeriveWith
)]
#[serde(crate = "conjure_object::serde")]
#[derive_with(PartialEq, Eq, PartialOrd, Ord, Hash)]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct CartesianPlot {
    #[builder(default, list(item(type = super::super::super::super::api::Timestamp)))]
    #[serde(rename = "timestamps", skip_serializing_if = "Vec::is_empty", default)]
    timestamps: Vec<super::super::super::super::api::Timestamp>,
    #[builder(default, list(item(type = f64)))]
    #[serde(rename = "xValues", skip_serializing_if = "Vec::is_empty", default)]
    #[derive_with(with = conjure_object::private::DoubleWrapper)]
    x_values: Vec<f64>,
    #[builder(default, list(item(type = f64)))]
    #[serde(rename = "yValues", skip_serializing_if = "Vec::is_empty", default)]
    #[derive_with(with = conjure_object::private::DoubleWrapper)]
    y_values: Vec<f64>,
}
impl CartesianPlot {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new() -> Self {
        Self::builder().build()
    }
    #[inline]
    pub fn timestamps(&self) -> &[super::super::super::super::api::Timestamp] {
        &*self.timestamps
    }
    #[inline]
    pub fn x_values(&self) -> &[f64] {
        &*self.x_values
    }
    #[inline]
    pub fn y_values(&self) -> &[f64] {
        &*self.y_values
    }
}
