/// The NATS-backed streaming transport became unavailable while running a streaming compute subscription.
/// This can happen during a NATS pod rollout after the streaming compute restart budget is exhausted.
/// Clients may retry by recreating the subscription. This uses INTERNAL because custom Conjure errors in this
/// API do not support an UNAVAILABLE code; consumers should branch on this error name rather than HTTP status.
#[derive(
    Debug,
    Clone,
    conjure_object::serde::Serialize,
    conjure_object::serde::Deserialize,
    PartialEq,
    Eq,
    PartialOrd,
    Ord,
    Hash,
    Copy
)]
#[serde(crate = "conjure_object::serde")]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct NatsStreamingUnavailable {}
impl NatsStreamingUnavailable {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new() -> Self {
        Self::builder().build()
    }
}
impl conjure_error::ErrorType for NatsStreamingUnavailable {
    #[inline]
    fn code() -> conjure_error::ErrorCode {
        conjure_error::ErrorCode::Internal
    }
    #[inline]
    fn name() -> &'static str {
        "PersistentCompute:NatsStreamingUnavailable"
    }
    #[inline]
    fn safe_args() -> &'static [&'static str] {
        &[]
    }
}
