nominal-api 0.1239.0

API bindings for the Nominal platform
Documentation
/// This will be sent if there is an error while creating a subscription. This means that the subscription was
/// never created and the client will have to re-try creating it if warranted.
/// This can also be sent after a subscription was first successfully started and sent result. In that case it
/// means that the subscription encountered an unrecoverable error at runtime and will be stopped.
#[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 SubscriptionCreationError {
    #[builder(
        custom(
            type = super::super::super::super::api::SerializableError,
            convert = Box::new
        )
    )]
    #[serde(rename = "serializableError")]
    serializable_error: Box<super::super::super::super::api::SerializableError>,
}
impl SubscriptionCreationError {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        serializable_error: super::super::super::super::api::SerializableError,
    ) -> Self {
        Self::builder().serializable_error(serializable_error).build()
    }
    /// A serialized version of the error. Should match the errors defined below.
    #[inline]
    pub fn serializable_error(
        &self,
    ) -> &super::super::super::super::api::SerializableError {
        &*self.serializable_error
    }
}