/// This will be sent if there is an error while updating a subscription. Note: This won't automatically cancel
/// the subscription. The client will have to call `ClientMessage::unsubscribe` to do that if warranted.
#[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 SubscriptionUpdateError {
    #[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 SubscriptionUpdateError {
    /// 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
    }
}
