nominal-api-conjure 0.1332.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. Retry the request after a short delay using exponential backoff. INVALID_ARGUMENT
/// (400) is used intentionally so clients do not auto-retry the request and amplify load —
/// callers must implement their own backoff.
#[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"]
    }
}