nominal-api-conjure 0.1353.0

Conjure HTTP API bindings for the Nominal platform
Documentation
#[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 ChannelSelection {
    #[builder(custom(type = super::ChannelInclusion, convert = Box::new))]
    #[serde(rename = "inclusion")]
    inclusion: Box<super::ChannelInclusion>,
    #[builder(default, set(item(type = String, into)))]
    #[serde(
        rename = "excludedChannels",
        skip_serializing_if = "std::collections::BTreeSet::is_empty",
        default
    )]
    excluded_channels: std::collections::BTreeSet<String>,
}
impl ChannelSelection {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(inclusion: super::ChannelInclusion) -> Self {
        Self::builder().inclusion(inclusion).build()
    }
    #[inline]
    pub fn inclusion(&self) -> &super::ChannelInclusion {
        &*self.inclusion
    }
    #[inline]
    pub fn excluded_channels(&self) -> &std::collections::BTreeSet<String> {
        &self.excluded_channels
    }
}