#[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 = String, into)))]
#[serde(
rename = "source",
skip_serializing_if = "std::collections::BTreeSet::is_empty",
default
)]
source: std::collections::BTreeSet<String>,
#[builder(into)]
#[serde(rename = "target")]
target: String,
}
impl RenameLabel {
#[inline]
pub fn new(target: impl Into<String>) -> Self {
Self::builder().target(target).build()
}
#[inline]
pub fn source(&self) -> &std::collections::BTreeSet<String> {
&self.source
}
#[inline]
pub fn target(&self) -> &str {
&*self.target
}
}