nominal-api 0.1240.0

API bindings for the Nominal platform
Documentation
/// Creates series and metadata for a video channel if it doesn't exist.
/// Returns the SeriesMetadataRid of the created or existing series metadata.
#[derive(
    Debug,
    Clone,
    conjure_object::serde::Serialize,
    conjure_object::serde::Deserialize,
    PartialEq,
    Eq,
    PartialOrd,
    Ord,
    Hash
)]
#[serde(crate = "conjure_object::serde")]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct CreateVideoSeriesRequest {
    #[serde(rename = "datasetRid")]
    dataset_rid: super::super::super::super::api::rids::DatasetRid,
    #[serde(rename = "channel")]
    channel: super::super::super::super::api::Channel,
    #[builder(
        default,
        map(
            key(type = super::super::super::super::api::TagName),
            value(type = super::super::super::super::api::TagValue)
        )
    )]
    #[serde(
        rename = "tags",
        skip_serializing_if = "std::collections::BTreeMap::is_empty",
        default
    )]
    tags: std::collections::BTreeMap<
        super::super::super::super::api::TagName,
        super::super::super::super::api::TagValue,
    >,
    #[builder(custom(type = super::TimeBounds, convert = Box::new))]
    #[serde(rename = "timeBounds")]
    time_bounds: Box<super::TimeBounds>,
}
impl CreateVideoSeriesRequest {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        dataset_rid: super::super::super::super::api::rids::DatasetRid,
        channel: super::super::super::super::api::Channel,
        time_bounds: super::TimeBounds,
    ) -> Self {
        Self::builder()
            .dataset_rid(dataset_rid)
            .channel(channel)
            .time_bounds(time_bounds)
            .build()
    }
    #[inline]
    pub fn dataset_rid(&self) -> &super::super::super::super::api::rids::DatasetRid {
        &self.dataset_rid
    }
    #[inline]
    pub fn channel(&self) -> &super::super::super::super::api::Channel {
        &self.channel
    }
    #[inline]
    pub fn tags(
        &self,
    ) -> &std::collections::BTreeMap<
        super::super::super::super::api::TagName,
        super::super::super::super::api::TagValue,
    > {
        &self.tags
    }
    #[inline]
    pub fn time_bounds(&self) -> &super::TimeBounds {
        &*self.time_bounds
    }
}