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 Reopen {
    #[builder(into)]
    #[serde(rename = "comment")]
    comment: String,
    #[builder(
        default,
        custom(
            type = impl
            Into<Option<super::ReopenStrategy>>,
            convert = |v|v.into().map(Box::new)
        )
    )]
    #[serde(rename = "strategy", skip_serializing_if = "Option::is_none", default)]
    strategy: Option<Box<super::ReopenStrategy>>,
}
impl Reopen {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(comment: impl Into<String>) -> Self {
        Self::builder().comment(comment).build()
    }
    #[inline]
    pub fn comment(&self) -> &str {
        &*self.comment
    }
    /// Defines the strategy for reopening the alert and any alerts linked via an associated notebook. If not
    /// provided, the default strategy is reopenAllLinkedAlerts.
    #[inline]
    pub fn strategy(&self) -> Option<&super::ReopenStrategy> {
        self.strategy.as_ref().map(|o| &**o)
    }
}