/// Metadata about the sensor that captured a point cloud.
#[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 PointCloudMetadata {
    #[builder(default, into)]
    #[serde(rename = "sensorModel", skip_serializing_if = "Option::is_none", default)]
    sensor_model: Option<String>,
    #[builder(default, into)]
    #[serde(
        rename = "coordinateSystem",
        skip_serializing_if = "Option::is_none",
        default
    )]
    coordinate_system: Option<String>,
    #[builder(default, into)]
    #[serde(rename = "resolutionMm", skip_serializing_if = "Option::is_none", default)]
    #[derive_with(with = conjure_object::private::DoubleWrapper)]
    resolution_mm: Option<f64>,
    #[builder(default, into)]
    #[serde(rename = "scanPattern", skip_serializing_if = "Option::is_none", default)]
    scan_pattern: Option<super::ScanPattern>,
}
impl PointCloudMetadata {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new() -> Self {
        Self::builder().build()
    }
    /// The sensor model name, e.g. "Velodyne VLP-16", "Ouster OS1-128".
    #[inline]
    pub fn sensor_model(&self) -> Option<&str> {
        self.sensor_model.as_ref().map(|o| &**o)
    }
    /// Coordinate reference system identifier, e.g. "EPSG:4326", "ENU".
    #[inline]
    pub fn coordinate_system(&self) -> Option<&str> {
        self.coordinate_system.as_ref().map(|o| &**o)
    }
    /// Spatial resolution of the point cloud in millimeters.
    #[inline]
    pub fn resolution_mm(&self) -> Option<f64> {
        self.resolution_mm.as_ref().map(|o| *o)
    }
    /// The scan pattern of the lidar sensor.
    #[inline]
    pub fn scan_pattern(&self) -> Option<&super::ScanPattern> {
        self.scan_pattern.as_ref().map(|o| &*o)
    }
}
