nominal-api-conjure 0.1330.0

Conjure HTTP API bindings for the Nominal platform
Documentation
/// Maps a container exit code to a structured error, for extractors that cannot emit a
/// structured /dev/termination-log document. Applied as a fallback error tier at ingest time.
#[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 ExitCodeMapping {
    #[serde(rename = "exitCode")]
    exit_code: i32,
    #[builder(into)]
    #[serde(rename = "code")]
    code: String,
    #[builder(into)]
    #[serde(rename = "message")]
    message: String,
    #[serde(rename = "retryable")]
    retryable: bool,
}
impl ExitCodeMapping {
    /// The container process exit code this mapping applies to.
    #[inline]
    pub fn exit_code(&self) -> i32 {
        self.exit_code
    }
    /// Machine-readable error code. Extractor-defined codes must fall outside the reserved platform namespace.
    #[inline]
    pub fn code(&self) -> &str {
        &*self.code
    }
    /// Human-readable error message.
    #[inline]
    pub fn message(&self) -> &str {
        &*self.message
    }
    /// Whether the platform may retry the ingest for this failure.
    #[inline]
    pub fn retryable(&self) -> bool {
        self.retryable
    }
}