nominal-api-conjure 0.1326.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 CombinedSource {
    #[serde(rename = "dataSourceRid")]
    data_source_rid: conjure_object::ResourceIdentifier,
    #[builder(
        default,
        custom(
            type = impl
            Into<Option<super::TagFilters>>,
            convert = |v|v.into().map(Box::new)
        )
    )]
    #[serde(rename = "tags", skip_serializing_if = "Option::is_none", default)]
    tags: Option<Box<super::TagFilters>>,
    #[builder(default, list(item(type = String, into)))]
    #[serde(
        rename = "injectedTagValues",
        skip_serializing_if = "Vec::is_empty",
        default
    )]
    injected_tag_values: Vec<String>,
}
impl CombinedSource {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(data_source_rid: conjure_object::ResourceIdentifier) -> Self {
        Self::builder().data_source_rid(data_source_rid).build()
    }
    #[inline]
    pub fn data_source_rid(&self) -> &conjure_object::ResourceIdentifier {
        &self.data_source_rid
    }
    #[inline]
    pub fn tags(&self) -> Option<&super::TagFilters> {
        self.tags.as_ref().map(|o| &**o)
    }
    /// This source's values for the node's `injectedTagKeys`, in the same order.
    #[inline]
    pub fn injected_tag_values(&self) -> &[String] {
        &*self.injected_tag_values
    }
}