// Code generated by oagen. DO NOT EDIT.

#[allow(unused_imports)]
use super::*;
#[allow(unused_imports)]
use crate::enums::*;
use serde::{Deserialize, Serialize};
/// Terminal: the executed block raised. `message` is the executor's
/// error string.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ErrorBlockExecutionLifecycle {
    /// Defaults to `error`.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub status: Option<String>,
    /// Human-readable error message
    pub message: String,
}
impl ErrorBlockExecutionLifecycle {
    /// Construct a new `ErrorBlockExecutionLifecycle` with the required fields set.
    #[allow(deprecated)]
    pub fn new(message: impl Into<String>) -> Self {
        Self {
            status: Default::default(),
            message: message.into(),
        }
    }
}
