// Code generated by oagen. DO NOT EDIT.

#[allow(unused_imports)]
use super::*;
#[allow(unused_imports)]
use crate::enums::*;
use serde::{Deserialize, Serialize};
/// Response to a review approve or reject request.
/// Carries `resume_status` so callers can see whether the run resumed
/// successfully.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct SubmitDecisionResponse {
    /// Defaults to `accepted`.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub submission_status: Option<SubmissionStatus>,
    pub review: Review,
    /// Defaults to `resumed`.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub resume_status: Option<ResumeStatus>,
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub resume_error: Option<String>,
}
impl SubmitDecisionResponse {
    /// Construct a new `SubmitDecisionResponse` with the required fields set.
    #[allow(deprecated)]
    pub fn new(review: Review) -> Self {
        Self {
            submission_status: Default::default(),
            review,
            resume_status: Default::default(),
            resume_error: Default::default(),
        }
    }
}
