nominal-api 0.1239.0

API bindings for the Nominal platform
Documentation
/// Rename or merge one or more source labels into a single target label.
#[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 RenameLabel {
    #[builder(default, set(item(type = super::super::super::api::Label)))]
    #[serde(
        rename = "source",
        skip_serializing_if = "std::collections::BTreeSet::is_empty",
        default
    )]
    source: std::collections::BTreeSet<super::super::super::api::Label>,
    #[serde(rename = "target")]
    target: super::super::super::api::Label,
}
impl RenameLabel {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(target: super::super::super::api::Label) -> Self {
        Self::builder().target(target).build()
    }
    #[inline]
    pub fn source(
        &self,
    ) -> &std::collections::BTreeSet<super::super::super::api::Label> {
        &self.source
    }
    #[inline]
    pub fn target(&self) -> &super::super::super::api::Label {
        &self.target
    }
}