dtz-core 2.3.5

a generated client for the DTZ Core API
Documentation
/*
 * DTZ Core Api
 *
 * a generated client for the DTZ Core API
 *
 * Contact: jens@apimeister.com
 * Generated by: https://openapi-generator.tech
 */

#[allow(unused_imports)]
use crate::models;
#[allow(unused_imports)]
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CreateTaskResponse {
    #[serde(rename = "taskId")]
    pub task_id: dtz_identifier::TaskId,
    #[serde(rename = "service")]
    pub service: String,
    #[serde(rename = "executionId")]
    pub execution_id: dtz_identifier::ExecutionId,
}

impl CreateTaskResponse {
    pub fn new(task_id: dtz_identifier::TaskId, service: String, execution_id: dtz_identifier::ExecutionId) -> CreateTaskResponse {
        CreateTaskResponse {
            task_id,
            service,
            execution_id,
        }
    }
}