nominal-api-conjure 0.1443.0

Conjure HTTP API bindings for the Nominal platform
Documentation
/// Selects a typed property value from every asset or run branch resolved from `dataset`. Inside a
/// `WithSeriesDataset` definition, `dataset` may be omitted to use that node's wrapping input; it is required
/// everywhere else. Asset branches read properties directly from their asset. Run branches read properties
/// directly from their run, never from a backing asset or dataset. Direct saved-dataset branches are unsupported.
#[derive(
    Debug,
    Clone,
    conjure_object::serde::Serialize,
    conjure_object::serde::Deserialize,
    conjure_object::private::DeriveWith
)]
#[serde(crate = "conjure_object::serde")]
#[derive_with(PartialEq, Eq, PartialOrd, Ord, Hash)]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct SelectProperty {
    #[serde(rename = "propertyName")]
    property_name: super::super::super::super::api::PropertyName,
    #[builder(
        default,
        custom(
            type = impl
            Into<Option<super::Dataset>>,
            convert = |v|v.into().map(Box::new)
        )
    )]
    #[serde(rename = "dataset", skip_serializing_if = "Option::is_none", default)]
    dataset: Option<Box<super::Dataset>>,
}
impl SelectProperty {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(property_name: super::super::super::super::api::PropertyName) -> Self {
        Self::builder().property_name(property_name).build()
    }
    #[inline]
    pub fn property_name(&self) -> &super::super::super::super::api::PropertyName {
        &self.property_name
    }
    #[inline]
    pub fn dataset(&self) -> Option<&super::Dataset> {
        self.dataset.as_ref().map(|o| &**o)
    }
}