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 WorkspaceSettings {
    #[builder(
        default,
        custom(
            type = impl
            Into<Option<super::PreferredRefNameConfiguration>>,
            convert = |v|v.into().map(Box::new)
        )
    )]
    #[serde(rename = "refNames", skip_serializing_if = "Option::is_none", default)]
    ref_names: Option<Box<super::PreferredRefNameConfiguration>>,
    #[builder(
        default,
        custom(
            type = impl
            Into<Option<super::ProcedureSettings>>,
            convert = |v|v.into().map(Box::new)
        )
    )]
    #[serde(rename = "procedures", skip_serializing_if = "Option::is_none", default)]
    procedures: Option<Box<super::ProcedureSettings>>,
}
impl WorkspaceSettings {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new() -> Self {
        Self::builder().build()
    }
    #[inline]
    pub fn ref_names(&self) -> Option<&super::PreferredRefNameConfiguration> {
        self.ref_names.as_ref().map(|o| &**o)
    }
    #[inline]
    pub fn procedures(&self) -> Option<&super::ProcedureSettings> {
        self.procedures.as_ref().map(|o| &**o)
    }
}