nominal-api 0.1240.0

API bindings for the Nominal platform
Documentation
/// Reference a video channel directly from a datasource/dataset
#[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 VideoDataSourceChannel {
    #[builder(into)]
    #[serde(rename = "dataSourceRid")]
    data_source_rid: String,
    #[builder(into)]
    #[serde(rename = "channel")]
    channel: String,
    #[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,
    >,
}
impl VideoDataSourceChannel {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(data_source_rid: impl Into<String>, channel: impl Into<String>) -> Self {
        Self::builder().data_source_rid(data_source_rid).channel(channel).build()
    }
    #[inline]
    pub fn data_source_rid(&self) -> &str {
        &*self.data_source_rid
    }
    #[inline]
    pub fn channel(&self) -> &str {
        &*self.channel
    }
    #[inline]
    pub fn tags(
        &self,
    ) -> &std::collections::BTreeMap<
        super::super::super::super::api::TagName,
        super::super::super::super::api::TagValue,
    > {
        &self.tags
    }
}