nominal-api-conjure 0.1287.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 CancelIngestJobFailure {
    #[serde(rename = "reason")]
    reason: super::CancelIngestJobFailureReason,
    #[builder(into)]
    #[serde(rename = "message")]
    message: String,
}
impl CancelIngestJobFailure {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        reason: super::CancelIngestJobFailureReason,
        message: impl Into<String>,
    ) -> Self {
        Self::builder().reason(reason).message(message).build()
    }
    #[inline]
    pub fn reason(&self) -> &super::CancelIngestJobFailureReason {
        &self.reason
    }
    /// Human-readable description of why the job could not be cancelled.
    #[inline]
    pub fn message(&self) -> &str {
        &*self.message
    }
}