nominal-api 0.1239.0

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 ChannelPrefixTree {
    #[builder(default, set(item(type = super::ChannelPrefixTreeNode)))]
    #[serde(
        rename = "roots",
        skip_serializing_if = "std::collections::BTreeSet::is_empty",
        default
    )]
    roots: std::collections::BTreeSet<super::ChannelPrefixTreeNode>,
    #[builder(into)]
    #[serde(rename = "delimiter")]
    delimiter: String,
}
impl ChannelPrefixTree {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(delimiter: impl Into<String>) -> Self {
        Self::builder().delimiter(delimiter).build()
    }
    #[inline]
    pub fn roots(&self) -> &std::collections::BTreeSet<super::ChannelPrefixTreeNode> {
        &self.roots
    }
    #[inline]
    pub fn delimiter(&self) -> &str {
        &*self.delimiter
    }
}