nominal-api-conjure 0.1436.0

Conjure HTTP API bindings for the Nominal platform
Documentation
/// The query was rejected because the compute backend is temporarily overloaded. This is a
/// transient, load-shedding response that protects overall availability; the query itself is
/// valid. Callers do not receive this error directly: the read path wraps it in a QoS
/// unavailable response (503), so standard Conjure clients back off and retry automatically.
/// The error type is retained as the 503's cause for server-side logging and query_log
/// correlation via queryId.
#[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 ServerOverloaded {
    #[serde(rename = "queryId")]
    query_id: conjure_object::Uuid,
}
impl ServerOverloaded {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(query_id: conjure_object::Uuid) -> Self {
        Self::builder().query_id(query_id).build()
    }
    #[inline]
    pub fn query_id(&self) -> conjure_object::Uuid {
        self.query_id
    }
}
impl conjure_error::ErrorType for ServerOverloaded {
    #[inline]
    fn code() -> conjure_error::ErrorCode {
        conjure_error::ErrorCode::InvalidArgument
    }
    #[inline]
    fn name() -> &'static str {
        "Compute:ServerOverloaded"
    }
    #[inline]
    fn safe_args() -> &'static [&'static str] {
        &["queryId"]
    }
}