nominal-api-conjure 0.1452.0

Conjure HTTP 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(
        custom(
            type = impl
            conjure_object::serde::Serialize,
            convert = |v|conjure_object::Any::new(v).expect("value failed to serialize")
        )
    )]
    #[serde(rename = "daggerImportConfig")]
    dagger_import_config: conjure_object::Any,
    #[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 {
    #[inline]
    pub fn source(&self) -> &super::IngestSource {
        &*self.source
    }
    #[inline]
    pub fn target(&self) -> &super::PointCloudIngestTarget {
        &*self.target
    }
    /// The Dagger **v2** `ImportRequest` body — everything from that
    /// schema except `source_uri`, which Scout fills in from the
    /// resolved presigned URL for `source`. Forwarded to Dagger's
    /// `POST /v2/imports/{model_uuid}`. Construct via the language's
    /// generated dagger-client types (e.g.
    /// `dagger_client.models.ImportRequest` in Python). Carries the
    /// required `archetype` (attribute definitions and sampler
    /// configuration), an optional `format` (the source format and its
    /// format-specific parameters, including the `geometry_type` and
    /// `columns` a CSV source needs; omit it to let Dagger infer the
    /// format from the file extension), and an optional
    /// `quiche_config` — all of which are domain knowledge the client
    /// owns when it produced the file. The legacy v1 shape, with
    /// `geometry_type` and `columns` at the top level, is rejected.
    #[inline]
    pub fn dagger_import_config(&self) -> &conjure_object::Any {
        &self.dagger_import_config
    }
    /// 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
    }
}