nominal-api 0.1239.0

API bindings for the Nominal platform
Documentation
/// Options for ingesting point cloud data into Dagger via Scout.
#[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 PointCloudOpts {
    #[builder(custom(type = super::IngestSource, convert = Box::new))]
    #[serde(rename = "source")]
    source: Box<super::IngestSource>,
    #[builder(custom(type = super::PointCloudIngestTarget, convert = Box::new))]
    #[serde(rename = "target")]
    target: Box<super::PointCloudIngestTarget>,
    #[builder(
        default,
        custom(
            type = impl
            Into<Option<super::super::super::scout::spatial::api::PointCloudMetadata>>,
            convert = |v|v.into().map(Box::new)
        )
    )]
    #[serde(rename = "sensorMetadata", skip_serializing_if = "Option::is_none", default)]
    sensor_metadata: Option<
        Box<super::super::super::scout::spatial::api::PointCloudMetadata>,
    >,
    #[serde(rename = "channel")]
    channel: super::super::super::api::Channel,
    #[builder(
        default,
        map(
            key(type = super::super::super::api::TagName),
            value(type = super::super::super::api::TagValue)
        )
    )]
    #[serde(
        rename = "tags",
        skip_serializing_if = "std::collections::BTreeMap::is_empty",
        default
    )]
    tags: std::collections::BTreeMap<
        super::super::super::api::TagName,
        super::super::super::api::TagValue,
    >,
}
impl PointCloudOpts {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        source: super::IngestSource,
        target: super::PointCloudIngestTarget,
        channel: super::super::super::api::Channel,
    ) -> Self {
        Self::builder().source(source).target(target).channel(channel).build()
    }
    #[inline]
    pub fn source(&self) -> &super::IngestSource {
        &*self.source
    }
    #[inline]
    pub fn target(&self) -> &super::PointCloudIngestTarget {
        &*self.target
    }
    /// Sensor metadata to associate with the point cloud.
    #[inline]
    pub fn sensor_metadata(
        &self,
    ) -> Option<&super::super::super::scout::spatial::api::PointCloudMetadata> {
        self.sensor_metadata.as_ref().map(|o| &**o)
    }
    /// Channel name for workbook integration.
    #[inline]
    pub fn channel(&self) -> &super::super::super::api::Channel {
        &self.channel
    }
    /// Tags to apply to the point cloud series.
    #[inline]
    pub fn tags(
        &self,
    ) -> &std::collections::BTreeMap<
        super::super::super::api::TagName,
        super::super::super::api::TagValue,
    > {
        &self.tags
    }
}