dtz_core/models/
create_task_response.rs

1/*
2 * DTZ Core Api
3 *
4 * a generated client for the DTZ Core API
5 *
6 * Contact: jens@apimeister.com
7 * Generated by: https://openapi-generator.tech
8 */
9
10#[allow(unused_imports)]
11use crate::models;
12#[allow(unused_imports)]
13use serde::{Deserialize, Serialize};
14
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct CreateTaskResponse {
17    #[serde(rename = "taskId")]
18    pub task_id: dtz_identifier::TaskId,
19    #[serde(rename = "service")]
20    pub service: String,
21    #[serde(rename = "executionId")]
22    pub execution_id: dtz_identifier::ExecutionId,
23}
24
25impl CreateTaskResponse {
26    pub fn new(task_id: dtz_identifier::TaskId, service: String, execution_id: dtz_identifier::ExecutionId) -> CreateTaskResponse {
27        CreateTaskResponse {
28            task_id,
29            service,
30            execution_id,
31        }
32    }
33}
34