nominal-api-conjure 0.1445.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 CommandConfirmation {
    #[builder(into)]
    #[serde(rename = "title")]
    title: String,
    #[builder(default, into)]
    #[serde(rename = "description", skip_serializing_if = "Option::is_none", default)]
    description: Option<String>,
    #[builder(default, into)]
    #[serde(rename = "confirmLabel", skip_serializing_if = "Option::is_none", default)]
    confirm_label: Option<String>,
}
impl CommandConfirmation {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(title: impl Into<String>) -> Self {
        Self::builder().title(title).build()
    }
    #[inline]
    pub fn title(&self) -> &str {
        &*self.title
    }
    #[inline]
    pub fn description(&self) -> Option<&str> {
        self.description.as_ref().map(|o| &**o)
    }
    /// Label for the confirm action. Clients provide a default when absent.
    #[inline]
    pub fn confirm_label(&self) -> Option<&str> {
        self.confirm_label.as_ref().map(|o| &**o)
    }
}