nominal-api-conjure 0.1440.0

Conjure HTTP API bindings for the Nominal platform
Documentation
/// A channel or asset/run property (by name) found in one or more locators across the batch.
/// `locatorMetadata` has one entry per locator the name exists in. For Kind.PROPERTY rows,
/// `name` is the property name.
#[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 BatchedChannelEntry {
    #[serde(rename = "name")]
    name: super::super::super::super::api::Channel,
    #[serde(rename = "kind")]
    kind: super::Kind,
    #[builder(default, set(item(type = super::BatchedLocatorChannelMetadata)))]
    #[serde(
        rename = "locatorMetadata",
        skip_serializing_if = "std::collections::BTreeSet::is_empty",
        default
    )]
    locator_metadata: std::collections::BTreeSet<super::BatchedLocatorChannelMetadata>,
}
impl BatchedChannelEntry {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        name: super::super::super::super::api::Channel,
        kind: super::Kind,
    ) -> Self {
        Self::builder().name(name).kind(kind).build()
    }
    #[inline]
    pub fn name(&self) -> &super::super::super::super::api::Channel {
        &self.name
    }
    #[inline]
    pub fn kind(&self) -> &super::Kind {
        &self.kind
    }
    #[inline]
    pub fn locator_metadata(
        &self,
    ) -> &std::collections::BTreeSet<super::BatchedLocatorChannelMetadata> {
        &self.locator_metadata
    }
}