/*
 * 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
 */

/// PatchedBulkWritableApprovalWorkflowStageResponseRequest : ApprovalWorkflowStageResponse Serializer.

#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct PatchedBulkWritableApprovalWorkflowStageResponseRequest {
    #[serde(rename = "id")]
    pub id: 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",
        skip_serializing_if = "Option::is_none"
    )]
    pub approval_workflow_stage:
        Option<Box<crate::models::ApprovalWorkflowStageResponseApprovalWorkflowStage>>,
    #[serde(rename = "user", skip_serializing_if = "Option::is_none")]
    pub user: Option<Box<crate::models::ApprovalWorkflowStageResponseApprovalWorkflowStage>>,
}

impl PatchedBulkWritableApprovalWorkflowStageResponseRequest {
    /// ApprovalWorkflowStageResponse Serializer.
    pub fn new(id: uuid::Uuid) -> PatchedBulkWritableApprovalWorkflowStageResponseRequest {
        PatchedBulkWritableApprovalWorkflowStageResponseRequest {
            id,
            comments: None,
            state: None,
            approval_workflow_stage: None,
            user: None,
        }
    }
}
