/*
 * API Documentation
 *
 * Source of truth and network automation platform
 *
 * The version of the OpenAPI document: 3.1.0 (3.1)
 *
 * Generated by: https://openapi-generator.tech
 */

/// ApprovalWorkflowStageResponseRequest : ApprovalWorkflowStageResponse Serializer.

#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct ApprovalWorkflowStageResponseRequest {
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<uuid::Uuid>,
    /// User comments to explain the decision that he/she made
    #[serde(rename = "comments", skip_serializing_if = "Option::is_none")]
    pub comments: Option<String>,
    #[serde(rename = "state", skip_serializing_if = "Option::is_none")]
    pub state: Option<crate::models::ApprovalWorkflowStateChoices>,
    #[serde(rename = "approval_workflow_stage")]
    pub approval_workflow_stage:
        Box<crate::models::ApprovalWorkflowStageResponseApprovalWorkflowStage>,
    #[serde(rename = "user")]
    pub user: Box<crate::models::ApprovalWorkflowStageResponseApprovalWorkflowStage>,
}

impl ApprovalWorkflowStageResponseRequest {
    /// ApprovalWorkflowStageResponse Serializer.
    pub fn new(
        approval_workflow_stage: crate::models::ApprovalWorkflowStageResponseApprovalWorkflowStage,
        user: crate::models::ApprovalWorkflowStageResponseApprovalWorkflowStage,
    ) -> ApprovalWorkflowStageResponseRequest {
        ApprovalWorkflowStageResponseRequest {
            id: None,
            comments: None,
            state: None,
            approval_workflow_stage: Box::new(approval_workflow_stage),
            user: Box::new(user),
        }
    }
}
