nominal-api 0.1239.0

API bindings for the Nominal platform
Documentation
#[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 GeoPlot3d {
    #[builder(into)]
    #[serde(rename = "plotId")]
    plot_id: String,
    #[builder(default, into)]
    #[serde(rename = "enabled", skip_serializing_if = "Option::is_none", default)]
    enabled: Option<bool>,
    #[builder(default, into)]
    #[serde(rename = "label", skip_serializing_if = "Option::is_none", default)]
    label: Option<String>,
    #[builder(custom(type = super::GeoPlot3dVisualizationOptions, convert = Box::new))]
    #[serde(rename = "visualizationOptions")]
    visualization_options: Box<super::GeoPlot3dVisualizationOptions>,
    #[builder(custom(type = super::Geo3dPosition, convert = Box::new))]
    #[serde(rename = "position")]
    position: Box<super::Geo3dPosition>,
    #[builder(custom(type = super::Geo3dOrientation, convert = Box::new))]
    #[serde(rename = "orientation")]
    orientation: Box<super::Geo3dOrientation>,
    #[builder(default, into)]
    #[serde(rename = "plotSensors", skip_serializing_if = "Option::is_none", default)]
    plot_sensors: Option<Vec<super::Geo3dSensor>>,
    #[builder(default, into)]
    #[serde(rename = "displayVectors", skip_serializing_if = "Option::is_none", default)]
    display_vectors: Option<Vec<super::Geo3dDisplayVector>>,
}
impl GeoPlot3d {
    #[inline]
    pub fn plot_id(&self) -> &str {
        &*self.plot_id
    }
    #[inline]
    pub fn enabled(&self) -> Option<bool> {
        self.enabled.as_ref().map(|o| *o)
    }
    #[inline]
    pub fn label(&self) -> Option<&str> {
        self.label.as_ref().map(|o| &**o)
    }
    #[inline]
    pub fn visualization_options(&self) -> &super::GeoPlot3dVisualizationOptions {
        &*self.visualization_options
    }
    #[inline]
    pub fn position(&self) -> &super::Geo3dPosition {
        &*self.position
    }
    #[inline]
    pub fn orientation(&self) -> &super::Geo3dOrientation {
        &*self.orientation
    }
    #[inline]
    pub fn plot_sensors(&self) -> Option<&[super::Geo3dSensor]> {
        self.plot_sensors.as_ref().map(|o| &**o)
    }
    #[inline]
    pub fn display_vectors(&self) -> Option<&[super::Geo3dDisplayVector]> {
        self.display_vectors.as_ref().map(|o| &**o)
    }
}